This content originally appeared on DEV Community and was authored by Prudence97
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...
This content originally appeared on DEV Community and was authored by Prudence97
Prudence97 | Sciencx (2022-07-10T21:14:43+00:00) Understanding Basic git Commands. Retrieved from https://www.scien.cx/2022/07/10/understanding-basic-git-commands/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.