docs: añadir stash al flujo de sincronización en git-push
Se añade git stash / git stash pop al paso de sincronización del comando git-push para proteger cambios locales antes de hacer pull --rebase. También se añade nota sobre el caso donde no hay cambios locales y se actualiza el checklist.
This commit is contained in:
@@ -11,12 +11,16 @@ git branch --show-current
|
|||||||
git status --short
|
git status --short
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Sincronizar antes de preparar commits:
|
2. Sincronizar antes de preparar commits (stash para proteger cambios locales):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
git stash
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
git stash pop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Si `git stash` reporta "No local changes to save", continuar directo con `git pull --rebase` (sin stash pop).
|
||||||
|
|
||||||
3. Revisar cambios y separarlos por tema:
|
3. Revisar cambios y separarlos por tema:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -65,7 +69,7 @@ git push
|
|||||||
|
|
||||||
## Checklist rápido
|
## Checklist rápido
|
||||||
|
|
||||||
- [ ] `git pull --rebase` ejecutado sin conflictos.
|
- [ ] `git stash` + `git pull --rebase` + `git stash pop` ejecutado sin conflictos.
|
||||||
- [ ] Se separaron cambios distintos en commits diferentes.
|
- [ ] Se separaron cambios distintos en commits diferentes.
|
||||||
- [ ] Cada commit tiene descripción larga en español.
|
- [ ] Cada commit tiene descripción larga en español.
|
||||||
- [ ] `git push` ejecutado correctamente.
|
- [ ] `git push` ejecutado correctamente.
|
||||||
|
|||||||
Reference in New Issue
Block a user