Git Show differences in working branch


Example

git diff

This will show the unstaged changes on the current branch from the commit before it. It will only show changes relative to the index, meaning it shows what you could add to the next commit, but haven't. To add (stage) these changes, you can use git add.

If a file is staged, but was modified after it was staged, git diff will show the differences between the current file and the staged version.