Force a GitHub Override on Local Files

Last modified: August 10, 2017
You are here:
Estimated reading time: < 1 min

If you’re trying to override your local files with the GitHub repository files then please follow the simple instruction below.

Please run the following command;

git fetch --all

To default to the most recent branch, please run the following command;

git reset --hard origin/master

If you are on a different branch, please run the following command;

git reset --hard origin/
Was this article helpful?
Dislike 0
Views: 1
Menu