5 | Seeing What Has Changed |
Your local repository tracks changes. Before you start committing just
anything, you need to see what changes exist between your working
tree and your repository and what changes are staged and ready to
commit. git status
is the tool for the
job.
git status
has several different
outputs, depending on whatâs in your working tree. The example on
the next page is from one of my repositories, and it contains
all three types of outputs: staged changes, changes to known files,
and untracked files. Letâs go over them in reverse order of how
they appear on the next pageâthe order of least important to most.
Starting at lines 14 and ending at 17, Git outputs the files and paths that it doesnât know anything ...
Get Pragmatic Guide to Git now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.