How can I reset the branch pointer of a remote tracked branch to one of its previous commits, so it looks like I didn't pulled (something similar like reset hard for local branches)?
You can set the reference to any other commit with:
git update-ref refs/remotes/origin/master <commit-sha1 or tag>
This will make remote branch origin/master
point to the commit you specified.
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