Last active
August 22, 2018 16:06
-
-
Save vkjr/b0fbb73df6064882b960972a4cb34de2 to your computer and use it in GitHub Desktop.
Squash few commits in branch before merge into master(develop)
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 --soft HEAD~$(git rev-list --count HEAD ^develop) | |
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