Skip to content

Instantly share code, notes, and snippets.

@bw2012
Created April 11, 2019 18:20
Show Gist options
  • 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