Created
May 20, 2020 08:34
-
-
Save yk2kus/324f38e71e705c6d32c4f1fbe4b088b9 to your computer and use it in GitHub Desktop.
git conflicts
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
To discard local changes on a file, you can do | |
git checkout yourfile | |
or, for all files using | |
git checkout -- . | |
You can also decide, for each file, if you want to keep your version or the repository version with | |
git checkout --ours yourfile # Your version | |
git checkout --theirs yourfile # Repository version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment