1.

GIT Status

Answer»

git status is mainly used to display the state of the staging area and the repository. It helps us to track all the changes made, point out untracked files.

Command:

git status

git status after a file is added

  • Add files to the repo using the following command:
touch file.txt

  • Execute git status.

  • A message would be displayed, describing the changes done to the repository.

git status after a file is deleted after commit

  • Delete the file using the following command:
git rm file.txt

  • Execute git status.

  • A message would be displayed, describing the file has been deleted.




Discussion

No Comment Found