Jiang Xin <worldhello.net@xxxxxxxxx> writes: > In order to see what the current branch is tracking, one way is using > "git branch -v -v", but branches other than the current are also > reported. Another way is using "git status", such as: > > $ git status > # On branch master > # Your branch is ahead of 'origin/master' by 1 commit. > ... > > But this will not work if there is no change between the current > branch and its upstream. What if report upstream tracking info > always even if there is no difference. E.g. > > $ git status > # On branch feature1 > # Your branch is identical to 'github/feature1'. > ... > > $ git status -bs > ## feature1...github/feature1 > ... > > $ git checkout feature1 > Already on 'feature1' > Your branch is identical to 'github/feature1'. > ... The sentence that began with "What if ..." never completed? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html