Lab 3: Check Status of the Repository

In this tutorial i will show you how to check the status of the repository

Check the Status of the Repository

You can use the git status command to check the current status of the repository.

git status

Here’s a screenshot of the output we get.
git-lab-3

The status command shows that there is nothing to commit at this point. This means that the repository has all the current state of the working directory. There are no outstanding changes to record.

If there are untracked changes in the project then those files will appear as red as shown below.
git-lab-3-2

If we use the git add command to start tracking those files then it will appear separately in green. Files in green mean that they are being tracked but the changes have not being commited.
git-lab-3-3

All posts in this series:
Lab 1: Setup Git on your Machine
Lab 2: Create a Git Repository from Scratch
Lab 3: Check the Status of the Repository
Lab 4: Making Changes to files in the Working Directory
Lab 5: Staging Changes in Git
Lab 6: Git Staging and Commiting

Other related posts:
Git Delete a Local or Remote Branch
How to Clone a Git Repository into a Specific Folder?
Change the URI for a Remote Git Repository
How to Merge a Local Git Branch with Master
How to Setup Aliases and Shortcuts for Git Commands
How to create a .gitignore file in Windows

This content has been helpful to you?

Thanks for contributing!

Yes No