Its 3:43 am in the morning and you have accidentally committed a lot more than you should. Being a victim of git stash ... more on that later. So How do I undo it
$rahul@g3ck0:~/programs/Remodel$ git reflog
924fa76 HEAD@{0}: commit: added reflect type
adf2098 HEAD@{1}: commit: fixed topsort with respect to return sets
10f7e63 HEAD@{2}: commit: updated config_parse function to handle whitespace etc
d6044b5 HEAD@{3}: commit: added gobject store/load functions
6c7a3a5 HEAD@{4}: commit: adding store.go. Generic functions to storing various
I had added reflect type which I dont want to be pushed to my master branch. All I need to do is
rahul@g3ck0:~/programs/Remodel$ git reset --hard adf2098
HEAD is now at adf2098 fixed topsort with respect to return sets
rahul@g3ck0:~/programs/Remodel$ git status
# On branch master
nothing to commit (working directory clean)
HEAD is now at adf2098 fixed topsort with respect to return sets
rahul@g3ck0:~/programs/Remodel$ git status
# On branch master
nothing to commit (working directory clean)