Created
September 18, 2022 09:44
-
-
Save Saul-Mirone/c09152db7a32b5d5af713bc908a3e206 to your computer and use it in GitHub Desktop.
Squash all commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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