1.

How to get the current status of local repository?

Answer»

Using 'git status' command in the repository working DIRECTORY, when this command is used it will display-

  • The current branch name
  • If it is an initial commit or not
  • List of the unstage/untracked files(which are newly ADDED or modified but not added to staging/index) List of the files PENDING to commit(these files are previously added to stating/index)

If there is no file/folder to add or commit then it will just display name of the branch and MESSAGE "NOTHING to commit, working directory clean"



Discussion

No Comment Found