Reputation: 418
I have this scenario when use TortoiseGit.
A use the Reset master to this...
to revert some changes and force pushed to the remote refs master.
B pull the code and said Already up-to-date
. And use the show log said the local master is before origin/master
.
I know using the git command git reset --hard origin/master
will fix this for me.
I would like to know how to overidde local master with remote origin/master using TortoiseGit?
Thanks.
Upvotes: 1
Views: 578
Reputation: 36740
You need to switch in the log to remotes/origin/master
All the steps:
master
On the left upper side, select remotes/origin/master
:
Do reset "master" to this
, en then "hard"
Upvotes: 1