What is the use of git status command?

In GIT, git status command mainly shows the status of working tree.

It shows following items:

<li>The paths that have differences between the index file and the current HEAD commit. </li>

<li>The paths that have differences between the working tree and the index file</li>

<li>The paths in the working tree that are not tracked by GIT.</li>

Among the above three items, first item is the one that we commit by using git commit command. Item two and three can be committed only after running git add command.

Read the full book at www.amazon.com
Posted in GIT, GIT Interview Questions

Leave a Reply

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