GIT Diff

How do you see what you have changed before you add your changes for staging to a git commit?

You can use the “git diff” command.

This command will show you a the command line what you have changed before you decide to commit the changes to your local repository. Here is an example:

You can see that I changed “Let’s” to “Let us”.

After I add, commit and push the change to Bitbucket, that interface shows the “diff” more nicely: