Last active
February 18, 2019 07:46
-
-
Save nikgalushko/c52da7d4ce1ee570ab5d66a0671c891b to your computer and use it in GitHub Desktop.
Squash all commits in branch
This file contains hidden or 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 master yourBranch) | |
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