Understanding Basic 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 di…


This content originally appeared on DEV Community and was authored by Prudence97

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


This content originally appeared on DEV Community and was authored by Prudence97


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Understanding Basic git Commands." Prudence97 | Sciencx - Sunday July 10, 2022, https://www.scien.cx/2022/07/10/understanding-basic-git-commands/
HARVARD
Prudence97 | Sciencx Sunday July 10, 2022 » Understanding Basic git Commands., viewed ,<https://www.scien.cx/2022/07/10/understanding-basic-git-commands/>
VANCOUVER
Prudence97 | Sciencx - » Understanding Basic git Commands. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/10/understanding-basic-git-commands/
CHICAGO
" » Understanding Basic git Commands." Prudence97 | Sciencx - Accessed . https://www.scien.cx/2022/07/10/understanding-basic-git-commands/
IEEE
" » Understanding Basic git Commands." Prudence97 | Sciencx [Online]. Available: https://www.scien.cx/2022/07/10/understanding-basic-git-commands/. [Accessed: ]
rf:citation
» Understanding Basic git Commands | Prudence97 | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.