Skip to content

Instantly share code, notes, and snippets.

@nikolayvitaev
Last active November 21, 2018 15:46
Show Gist options
  • Select an option

  • Save nikolayvitaev/c72add7ce510b0c206423f4b1f4de5c7 to your computer and use it in GitHub Desktop.

Select an option

Save nikolayvitaev/c72add7ce510b0c206423f4b1f4de5c7 to your computer and use it in GitHub Desktop.

Git diff show only name

Command

$ git diff --name-only 4c2d3df99947b4406c3032e599e8e820d82a6a7b 511b49a17a7e0b99ea65c48c0b885c09f7bc06c5

Result

/path/to/filename.ext
/path/to/filename2.ext

Git diff show file status with names

Command

git diff --name-status fc82481393794c0aa49acc53a5a40e791cc44f06 511b49a17a7e0b99ea65c48c0b885c09f7bc06c5

Result

M /path/to/filename.ext
A /path/to/filename2.ext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment