Adam Deng
Adam Deng

Reputation: 418

How to use TortoiseGit to perform the git command `git reset --hard origin/master`?

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.

enter image description here

Upvotes: 1

Views: 578

Answers (1)

Julian
Julian

Reputation: 36740

You need to switch in the log to remotes/origin/master

All the steps:

  1. Fetch
  2. Switch to master
  3. Go to log
  4. On the left upper side, select remotes/origin/master :

    enter image description here

  5. Do reset "master" to this , en then "hard"

    enter image description here

Upvotes: 1

Related Questions