To update my multiple repos, I did:
git bulk fetch origin
git bulk pull origin master
Now it appears that some of the functionality which was working initially is not working now and so I want to revert back to previous state of my repos.
How can this be done ?
I tried doing git reset –soft commit id & git reset –hard commit id for one repos but it is not working.
Any suggestions.
You can use
git reflogto revert your repo to your old state.You should see something along the lines of:
Use a
git reset --hardto reset the repo to the SHA1 read from thegit reflog.Note: Another way, instead of using
git-reflogand copying SHA1 reference, is to use a revision specification:master@{1}, which is the previous position of master,master@{"5 minutes ago"}, ormaster@{17:30}.