Skip to content

Instantly share code, notes, and snippets.

@bw2012
Created April 11, 2019 18:20
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 bw2012/e7acfec738825b7e1683743d6fbfbce3 to your computer and use it in GitHub Desktop.
Save bw2012/e7acfec738825b7e1683743d6fbfbce3 to your computer and use it in GitHub Desktop.
git squash branch to one commit
git checkout master
git merge --squash [branch]
git add .
git commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment