O'Reilly logo

Pragmatic Version Control Using Git by Travis Swicegood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required