1.

What is ‘git status’ is used for?

Answer»

A 'Git Status' is the most generally utilized command on GIT platform. It records down the DISTINCTION between the working catalog and the index, it is useful in understanding a git all the more completely.

To Check the status of the LOCAL repo Utilize the git status command, to check the present condition of the local repo.

$ git status

On branch master.Your branch is up-to-date with 'origin/master'.nothing to commit, working directory CLEAN

Being "fully informed regarding 'origin/master' is the BEST message for git status. It really implies there is nothing to push. "working registry clean" implies that every one of the documents in the present index is being overseen by git (or are as a rule deliberately overlooked by means of .gitignore) and the latest adaptation of the record has been submitted and nothing pending.

In the event that git status has referenced "Unmanaged records:", we may need to include at least one unmanaged file.

$ git status

On branch master

Your branch is AHEAD of 'origin/master' by 1 commit. (use "git push" to publish your local commits)

Untracked files: (use "git add <file>..." to include in what will be committed)

xyz.txt nothing added to commit but untracked files present (use "git add" to track). We will use the git status, to keep monitoring the states of both the working directory and the repository.



Discussion

No Comment Found