-
If I made some changes, but didn’t do a
commit -m "my message, how can I rollback to where I was? -
If I did a
commit -m 'my message'but didn’t push to origin, how can I roll back? -
If I did a
git pull origin, now I don’t like what I got, how can I roll back to where I was? -
How can I get a list of what files are at the origin that have changed or are different from my local?
If I made some changes, but didn’t do a commit -m my message ,
Share
git reset --hard HEAD^git reset --hard ORIG_HEADgit reset --hard <shaSUM of the commit>git fetch && git diff origin/<branch>references: http://git-scm.com/docs/git-reset