Skip to content

Instantly share code, notes, and snippets.

@matthiasbaldi
Created April 3, 2019 08:04
Show Gist options
  • Save matthiasbaldi/59dc9a2eaefb6ba99efb179958860335 to your computer and use it in GitHub Desktop.
Save matthiasbaldi/59dc9a2eaefb6ba99efb179958860335 to your computer and use it in GitHub Desktop.
GIT squash a PR to one commit
# the hash describes the commit you want to go back
git reset --soft <hash>
git commit -m "<message>"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment