Skip to content

Instantly share code, notes, and snippets.

@mmcgraw73
Created September 1, 2020 23:43
Show Gist options
  • Save mmcgraw73/0b519d60bd729d593212285271f43880 to your computer and use it in GitHub Desktop.
Save mmcgraw73/0b519d60bd729d593212285271f43880 to your computer and use it in GitHub Desktop.
A Git Command Reference - Often Used, Sometimes Forgotten
# 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