4. Checking the status of the repository
Goals
- To learn how to check the repository’s status
01 Check the status of the repository
Use the git status
command, to check the current state of the repository.
Run:
git status
You will see
Result:
$ git status # On branch master nothing to commit (working directory clean)
The command checks the status and reports that there’s nothing to commit, meaning the repository stores the current state of the working directory, and there are no changes to record.
We will use the git status
command to keep monitoring the states of both the working directory and the repository.