git – How to undo the last commit? – Stack Overflow — The Wiert Corner – irregular stream of stuff

Always handy to have at hand as the git-reset documentation is toooooo long: Undo a commit and redo $ git commit … (1) $ git reset –soft HEAD~1 (2) > (3) $ git add …. (4) $ git commit -c ORIG_HEAD (5) This is what you want to undo This […]

via git – How to undo the last commit? – Stack Overflow — The Wiert Corner – irregular stream of stuff

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s