Skip to content

Instantly share code, notes, and snippets.

@nikgalushko
Last active February 18, 2019 07:46
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 nikgalushko/c52da7d4ce1ee570ab5d66a0671c891b to your computer and use it in GitHub Desktop.
Save nikgalushko/c52da7d4ce1ee570ab5d66a0671c891b to your computer and use it in GitHub Desktop.
Squash all commits in branch
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