// we need to type both of them 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 master branch to the state of the origin/master branch.