Skip to content

Instantly share code, notes, and snippets.

@zacharyliu
Last active November 4, 2023 02:44

Revisions

  1. zacharyliu revised this gist Jul 29, 2015. No changes.
  2. zacharyliu created this gist Jul 29, 2015.
    1 change: 1 addition & 0 deletions git-squash.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git reset --hard `git merge-base --fork-point origin/master` && git merge --squash HEAD@{1} && git commit