Checking status in git

One of the most frequently used Git command is – git status. This command gives lot of useful information as mentioned below.
  • tells which branch you are on. By default you are on master branch.
  • tracked files/ untracked files if any
  • If there are any files in the staging area ready to be committed.
  • also tells if there is any conflict when you are merging 2 branches.
  • tells if local branch is ahead or behind of remote tracking branch.
Below image shows sample output of git status command. Notice that after creating new file, git status command shows that file in untracked files section.

Web development and Automation testing

solutions delivered!!