Skip to content

Instantly share code, notes, and snippets.

@tux-00
Last active March 20, 2017 13:04
Show Gist options
  • Save tux-00/e1a5991604a2431d9e64a38a1b8e3630 to your computer and use it in GitHub Desktop.
Save tux-00/e1a5991604a2431d9e64a38a1b8e3630 to your computer and use it in GitHub Desktop.
Cancel a specific commit

Revert one commit

git revert {sha}

Revert commit x to y

git revert {sha}..{sha}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment