3. Putting the project under version control
Checking the status of the repository
Let's use the git status command to check the current state of the repository.
Task
Run the git status command in the VS Code terminal.
You should see the following output:
Result:
On branch main
nothing to commit, working tree clean
This means that the repository is clean and there are no changes to commit.
I use the git status command pretty often to check what files I have changed since the last commit. It's a good practice to check the status before committing. This way, you can be sure that you are committing the right changes.
© 2024-2025 GitByBit.All rights reserved.