Git diff all local uncommitted changes

Git diff all local uncommitted changes

Taken from this answer, to a similar (but I dont think duplicate) question, I think what youre looking for is:

git diff HEAD

This will show you all the differences between your current working directory (i.e. your staged and unstaged changes) and the HEAD commit.

Or – if you prefer to match the syntax in your question, this would do the same thing:

git diff master

(where master is your current branch).

Git diff all local uncommitted changes

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *