Git reset origin branch

In this article let’s discuss about Git reset origin branch. Let’s go through the following methods without any delay.

Method 1:

git fetch origin
git reset --hard origin/master

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

git fetch origin
git reset --hard origin/master
Remember this forever

Hope the above solution works.

Realted Posts : How to get only figures of string bash