Reputation: 23780
What is the command that I should use in Windows to learn if I am behind the repository?
Upvotes: 0
Views: 72
Reputation: 21863
Simply type
git status
It will tell you how many commits ahead you are:
For "behind", you have to do
git fetch
and then a git status
:
Upvotes: 3
Reputation: 26341
First you have to fetch new references from the repository:
git fetch <remote> <branch>
Then using
git status
will tell you how many commits you are behind.
Upvotes: 1