In svn or subclipse, I can simply do a 'revert' on the root project and all my local changes are discarded and src is updated to the latest in HEAD. I don't seem to find an equivalent of this in git though several blogs claim the same.
This is what I did:
tried git pull, it brought in changes but warned of conflict
tried git reset --hard HEAD
, but nothing happened. I still see the committed conflicted changes
I must've tried few other commands I don't remember. I just need to get back to remote head and not worry about what state my local repo is.
Help?
You need to reset to origin/master:
git reset --hard origin/master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With