Loading...
Loading...
Use when squash-merging a feature branch into main for linear history. Handles pre-flight checks, squash merge, commit delegation to git-commit, and branch cleanup.
npx skill4agent add ralphcrisostomo/nuxt-development-skills git-squash/git-squash feature/my-branchmaingit status --porcelaingit rev-parse --verify <branch>git log main..<branch> --onelinegit checkout mainorigingit pull --ff-onlygit merge --squash <branch>git merge --abortgit rebase main/git-commitgit log --oneline -5
git status
git diffgit branch -d <branch>-dgit diff main <branch>git branch -D <branch>git ls-remote --heads origin <branch>git push origin --delete <branch>main--squash/git-commitgit branch -d-Dgit merge --squash/git-commit-d-D