What commands would you use to force an overwrite of your local files with the master branch? 1

What commands would you use to force an overwrite of your local files with the master branch?

git fetch --all 
git reset --hard /

Here is what the above code is Doing:
1. git fetch –all
This will fetch all the remote branches from the repository.
2. git reset –hard /
This will reset your current branch to the state of the remote branch.

Similar Posts