Safe Git Push
Automates secure Git push workflows by handling rebases and verification tests to ensure code integrity before merging.
The safe-push skill provides a robust wrapper for Git operations, preventing common push failures when a remote branch has advanced. It automates the critical fetch-rebase-test cycle, requiring a clean worktree and performing automated Go tests following any rebase to maintain repository stability. By enforcing a manual review of implementation logic post-rebase and offering configurable test commands, it bridges the gap between automated synchronization and manual quality assurance, ensuring that code remains functional even after upstream changes.
Key Features
01Worktree cleanliness validation to prevent accidental data loss
02Customizable branch targeting and test command overrides
03Conditional test execution triggered specifically by rebase events
04Automated fetch and rebase logic for out-of-sync remote branches
05Manual audit enforcement to verify logic consistency after synchronization
06223 GitHub stars
Use Cases
01Pushing local changes to a shared branch that has moved ahead of local state
02Ensuring unit tests pass on the merged state of local and remote code before pushing
03Streamlining complex git workflows into a single, safety-checked command