-1

I have just started learning git. I don't understand what these numbers beside master mean.

Numbers beside branch name

grg
  • 5,023
  • 3
  • 34
  • 50
  • 2
    Without explicitly knowing I would hazard a guess at it showing the current status. My guess would be that you're 2 commits ahead of origin, no modified files, and no commits behind origin (you can be both ahead and behind origin at the same time). Try a `git status` to see if the numbers line up. – Lasse V. Karlsen Mar 04 '17 at 19:56
  • 2
    That seems to be posh-git. You might find the answer in [the documentation](https://github.com/dahlbyk/posh-git#git-status-summary-information). – JJJ Mar 04 '17 at 19:58
  • @JJJ Thank you. That documentation really helps – user3423927 Mar 04 '17 at 20:01

1 Answers1

4

I believe you are using posh-git and from documentation, it means:

  1. master - current branch
  2. +2 - 2 files added
  3. ~0 - Zero files modified
  4. -0 - Zero files Removed
  5. ! - There are untracked changes in the working tree
Libin Varghese
  • 1,506
  • 13
  • 19