git reset hard for remote 1

git reset hard for remote

git fetch origin
git reset --hard origin/master

Here is what the above code is Doing:
1. git fetch origin
– This will fetch all the branches from the remote repository.
2. git reset –hard origin/master
– This will reset the local master branch to the remote master branch.

Similar Posts