DEV Community

Prudence97
Prudence97

Posted on

Understanding Basic git Commands

Git Commands


git status

The Git Status is a tracker feature of Git. It basically highlights the status of your changes made in your working directory, it also shows the files that are being tracked by Git. You can also use git diff to clearly highlight the difference in changes.

↓↓

git add .

git add . is seen as the first command that tells Git to save a snapshot of the your project into the commit history. However, it does not really affect the repository in any significant way, it only tells Git that you want to include or add updates when you commit.

↓↓
git commit -m " "

Git commit takes a permanent snapshot of the current state of your repository. It "takes a modified file in your working directory and puts it in a staging area". A staging area contains files that are going to be a part of the next commit.

There's so much more...

Top comments (0)