Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
tux-00
/
cancel_commit.md
Last active
March 20, 2017 13:04
Show Gist options
Download ZIP
Star
(
0
)
0
You must be signed in to star a gist
Fork
(
0
)
0
You must be signed in to fork a gist
Embed
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone using the web URL.
Learn more about clone URLs
Clone this repository at <script src="https://gist.github.com/tux-00/e1a5991604a2431d9e64a38a1b8e3630.js"></script>
Save tux-00/e1a5991604a2431d9e64a38a1b8e3630 to your computer and use it in GitHub Desktop.
Code
Revisions
2
Embed
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone using the web URL.
Learn more about clone URLs
Clone this repository at <script src="https://gist.github.com/tux-00/e1a5991604a2431d9e64a38a1b8e3630.js"></script>
Save tux-00/e1a5991604a2431d9e64a38a1b8e3630 to your computer and use it in GitHub Desktop.
Download ZIP
Cancel a specific commit
Raw
cancel_commit.md
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
You can’t perform that action at this time.