From 37882f1c24ce9f1e116f53c46f7c454098ea6721 Mon Sep 17 00:00:00 2001 From: Enmanuel Date: Fri, 6 Mar 2026 22:17:48 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20a=C3=B1adir=20stash=20al=20flujo=20de?= =?UTF-8?q?=20sincronizaci=C3=B3n=20en=20git-push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .claude/commands/git-push.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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.