Skip to content

Instantly share code, notes, and snippets.

@camilopayan
Created October 28, 2015 18:19
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 camilopayan/529ed2dd38a505c2da90 to your computer and use it in GitHub Desktop.
Save camilopayan/529ed2dd38a505c2da90 to your computer and use it in GitHub Desktop.
Squash to the parent branch
git reset --soft origin/[BRANCH NAME]
git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment