DEV Community

Prudence97
Prudence97

Posted on

1 1

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...

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay