View gist:914ecbc3cff4755baf1fb878c85aad1a
git status |
View gist:dea12bf44012c810bfb8de7fe6443471
git checkout <ID><file> |
View gist:a5e7cfe24a142039893552c7a1c8d5bb
git commit -a --amend (after editing the broken files) |
View gist:1a0763dd4f79603856ced2698708171b
git revert $id (Creates a new commit) |
View gist:0dcad8edb2f5bb32339fb5a94df82eb4
git revert HEAD (Creates a new commit) |
View gist:de130d3e9c488cc537761c771e812c82
git checkout -f | git reset --hard (you cannot undo a hard reset) |
View gist:557e34d1c5ae35d253029b3ad43214f4
git branch -d <branch> |
View gist:ca4fa89741b5aa08cf546d0406707c28
git checkout <new><base> |
NewerOlder