Skip to content

Instantly share code, notes, and snippets.

View LizSafina's full-sized avatar
☺️

LizSafina

☺️
View GitHub Profile
@alexislucena
alexislucena / uncommitLastCommit.md
Created November 14, 2016 08:56
Git: How to uncommit my last commit in git

To keep the changes from the commit you want to undo

$ git reset --soft HEAD^

To destroy the changes from the commit you want to undo

$ git reset --hard HEAD^

You can also say