git diff- Show changes between commits, commit and working tree, etc
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-onlyShow only names of changed files.
git diff --name-statusShow only names and status of changed files.
git diff --color-wordsWord by word diff instead of line by line.
Comments
Post a Comment