diff --git a/.claude/commands/git-push.md b/.claude/commands/git-push.md index e1036c8..b4f6a7c 100644 --- a/.claude/commands/git-push.md +++ b/.claude/commands/git-push.md @@ -11,12 +11,16 @@ git branch --show-current git status --short ``` -2. Sincronizar antes de preparar commits: +2. Sincronizar antes de preparar commits (stash para proteger cambios locales): ```bash +git stash 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: ```bash @@ -65,7 +69,7 @@ git push ## 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. - [ ] Cada commit tiene descripción larga en español. - [ ] `git push` ejecutado correctamente.