Coderwall

Topics by Tech

Ruby Python JavaScript Web Tools iOS PHP Android .NET Java

Software Categories

API gateway APM product comparisons Application security Certification platform Data integration Email gateway Subscription analytics

Quick Links

Recent Trending Popular Discover Topics Topic Categories Discover Software Categories
Jobs
Discover Topics Browse every programming topic Topic Categories Programming languages, frameworks and tools, grouped by categories
Recent Trending Popular

Topics by Tech

Ruby Python JavaScript Web Tools iOS PHP Android .NET Java
Discover Software Categories Browse every software category
API gateway APM product comparisons Application security Certification platform Data integration Email gateway Subscription analytics
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
15.38K
· 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.

26.43K
3

Command Pattern in JavaScript (undo/redo)

12.96K
1

Undoing an accidental commit in a git repository

6.75K
0

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Undo Authors
Rafael Bicalho
26.43K
#undo
#VimL
#Python
murphyrandle
15.38K
#undo
#Python
#JavaScript
alexanderbrevig
12.96K
#undo
#C#
#JavaScript
Christoffer Niska
6.749K
#undo
#php
#CSS
catenate
3.732K
#undo
#Shell
#Ruby
Related Tags
#undo
#screencast
#commit
#git
#amend
#accident
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Master Git one commit at a time
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 Application security Contact Privacy Terms

Copyright 2026

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