I'm new to git community, and I use source tree to visualize it but I wonder what is the meaning of "behind" as you can see in the picture
Asked
Active
Viewed 7,081 times
7

Mohamed Badr
- 2,562
- 2
- 26
- 43
1 Answers
23
It means the upstream “develop” branch (the branch that your “develop” branch is tracking; probably named something like “remotes/origin/develop” in your repo) has eight commits that your “develop” branch doesn't have. The upstream “feature/XXX” branch has one commit that your “feature/XXX” branch doesn't have.
_ your “feature/XXX”
| _ upstream “feature/XXX”
| |
v v
,-o--o
/
--o--o--o--o--o--o--o--o--o--o--o
^ ^
| |_ upstream “develop”
|_ your “develop”

rob mayoff
- 375,296
- 67
- 796
- 848
-
Well, I moved to the develop branch and pulled from the server and "8 behind" diapered, but "1 behind" still exist. what is this supposed to mean ? – Mohamed Badr Jun 06 '15 at 06:46
-
When you pulled, it fast-forwarded your “develop” to the same commit as the upstream “develop”. Your “feature/XXX” branch is still one commit behind the upstream “feature/XXX” branch. – rob mayoff Jun 06 '15 at 06:47
-
Thanks, the graph is a perfect illustration. – Mohamed Badr Jun 06 '15 at 06:53
-
5Upvoted for the excellent ASCII art :) – David Deutsch Jun 06 '15 at 15:33