Git Amend Safety
Enforces safe Git commit amendments by verifying HEAD status and push history before modifying repository history.
The Git Amend Skill provides a structured, safety-first workflow for modifying recent commits. It prevents common version control errors by enforcing mandatory checks to ensure that the commit being modified is the HEAD, was created by the current user, and hasn't been pushed to a remote repository. By automating these pre-checks and providing clear recovery paths via Git reflog, this skill helps developers maintain clean commit histories without the risk of creating divergent branches or overwriting collaborator work.
Características Principales
01Interactive rebase guidance for non-HEAD commits
0256 GitHub stars
03Prevention of history divergence on remote branches
04Error recovery instructions using Git reflog
05Step-by-step workflows for typos and forgotten files
06Pre-amend verification of HEAD and push status
Casos de Uso
01Fixing typos or improving messages in the most recent unpushed commit
02Safely modifying local commit history before sharing with the team
03Adding forgotten files to the previous commit to keep history clean