Seeing What Has Changed
It’s easy to remember that you added a new file or made a change to one file when it’s fresh in your mind. Sometimes you don’t have that luxury, though. Someone walks into your office or you get caught up in preparation for an impending deadline right after you stage a change.
You need to find out what has changed in your working tree and how it has changed. You can use two of Git’s commands, git status and git diff, to do that.
Viewing the Current Status
You can use git status to see all the changes that have occurred in your repository. The output it generates is based on the status of any staged commits and how your current working copy compares to what is tracked by the repository.
There’s still that change you ...