Skip to content

Instantly share code, notes, and snippets.

@legalsylvain
Last active April 1, 2016 08:58
Show Gist options
  • Save legalsylvain/67570f7755618f096b16 to your computer and use it in GitHub Desktop.
Save legalsylvain/67570f7755618f096b16 to your computer and use it in GitHub Desktop.

Squatch

git rebase -i NOM_BRANCH~[X]

pick C1 s C2 pick C3 ... pick CX

-> merge C2 et C1

Cancel [X] commits pushed on a [branch] of a [remote]

git resert --hard HEAD~[X] #???
git push [remote] [branch] --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment