From the course: Git Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Git status

Git status

- We are now able to use Git, but there are a lot of things we can do when we interact with our files. Let's see how that all works. One of the most powerful commands we have with Git is git status. Git status will always tell you how your Git repository is doing. It will often also tell you what you might want to do to get yourself out of a situation. Let's see how that works. So if I create a new file, it is added to my repository. If I now do git status, it will tell me that there's file that is untracked which means it's not in the staging area yet. It also shows me what I can do. I can use git add file to include it in what will be committed. All right, so let's add it. I'll do git add example.md and I'll use git status again. And it says I do have new changes to be committed. So they have been staged, but I can commit them now. It also shows me what to do if I don't want to commit it and I…

Contents