Created
June 19, 2016 03:44
-
-
Save iamtekeste/04733fdf8a3c24f2f186245464fba17a to your computer and use it in GitHub Desktop.
Git Commands to Overwrite Local Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch --all | |
$ git reset --hard origin/master | |
To download changes from some other branch use the following command. | |
$ git reset --hard origin/other_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment