Answers for "how to check git changes"

1

how to check git changes before commit

git diff --staged
Posted by: Guest on October-31-2020
0

git see local changes

git diff (no parameters)
Print out differences between your working directory and the index.

git diff --cached:
Print out differences between the index and HEAD (current commit).

git diff HEAD:
Print out differences between your working directory and the HEAD.

git diff --name-only
Show only names of changed files.

git diff --name-status
Show only names and status of changed files.

git diff --color-words
Word by word diff instead of line by line.
Posted by: Guest on February-22-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language