Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
14.88K
· murphyrandle

How to undo a git commit --amend

#undo
#screencast
#commit
#git
#amend
#accident

I made a silly mistake this morning, accidentally doing a git commit amend instead of a new commit. Here's how to roll back:

http://www.youtube.com/watch?v=pW0bITv07ok&feature=youtu.be

Thanks to http://stackoverflow.com/questions/1459150/how-to-undo-git-commit-amend-done-instead-of-git-commit

And the git documentation!

#undo
#screencast
#commit
#git
#amend
#accident

Written by Murphy Randle

Say Thanks
Respond

Related protips

Vim "swap", "backup" and "undo" files.

25.32K
3

Command Pattern in JavaScript (undo/redo)

12.38K
1

Undoing an accidental commit in a git repository

6.473K
0

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Undo Authors
Rafael Bicalho
25.33K
#undo
#VimL
#Python
murphyrandle
14.88K
#undo
#Python
#JavaScript
alexanderbrevig
12.38K
#undo
#C#
#JavaScript
Christoffer Niska
6.473K
#undo
#php
#CSS
catenate
3.29K
#undo
#Shell
#Ruby
Related Tags
#undo
#screencast
#commit
#git
#amend
#accident
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Tools
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.