Skip to content

Instantly share code, notes, and snippets.

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