Skip to content

Instantly share code, notes, and snippets.

@mverteuil
Created November 26, 2020 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mverteuil/50e9f604592852c79f404dfaf3a62f70 to your computer and use it in GitHub Desktop.
Save mverteuil/50e9f604592852c79f404dfaf3a62f70 to your computer and use it in GitHub Desktop.
Rebase with pre-commit checks before each commit
git rebase -x 'git reset --soft HEAD~1 && git commit -C HEAD@{1}' -i target_branch_or_commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment