Skip to content

Instantly share code, notes, and snippets.

@Saul-Mirone
Created September 18, 2022 09:44
Show Gist options
  • Save Saul-Mirone/c09152db7a32b5d5af713bc908a3e206 to your computer and use it in GitHub Desktop.
Save Saul-Mirone/c09152db7a32b5d5af713bc908a3e206 to your computer and use it in GitHub Desktop.
Squash all commits
git checkout yourBranch
git reset $(git merge-base main $(git branch --show-current))
git add -A
git commit -m "one commit on yourBranch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment