Git reset branch

In this article let’s discuss about Git reset 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 by have a try!

Method 2 :

git checkout mybranch
git reset --hard origin/mybranch

Hope the above solution works.

Realted Posts : Error: could not install packages due to an environmenterror: [winerror 5] access is denied: ‘d:\\anaconda3\\scripts\\pip.exe’ consider using the `–user` option or check the permissions.