Created
September 1, 2020 23:43
-
-
Save mmcgraw73/0b519d60bd729d593212285271f43880 to your computer and use it in GitHub Desktop.
A Git Command Reference - Often Used, Sometimes Forgotten
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
# diff - only file names | |
git diff --names-only | |
# commit --merge | |
# if you want to overwrite your local copy of file1.ext and file2.ext with versions from another branch | |
git commit --merge origin/branch path/to/wanted/file1.ext path/to/wanted/file2.ext | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment