我很少看到有帖子说跑步
git branch -lvv将显示所有本地分支以及它们旁边的本地分支所基于的远程分支。但我认为这不会发生。
我使用的是git版本2.7.1.windows.2:
me@ME-PC BLAH64 /c/code/myproj (BRANCH-10)
$ git --version
git version 2.7.1.windows.2下面是我发出命令时得到的结果:
me@ME-PC BLAH64 /c/code/myproj (BRANCH-10)
$ git branch -lvv
* BRANCH-10 xxxxxxx some comment
BRANCH-7 xxxxxxx some comment
BRANCH-12 xxxxxxx some comment
dev-branch xxxxxxx [origin/master] some comment
dev-branch-c xxxxxxx some comment上面的xxxxxxx是一些看起来很奇怪的数字,比如05317bba或类似的数字。
如何查看我的所有本地分支以及这些本地分支所基于的远程分支?即,我如何知道我的本地分支基于哪个远程分支?
因此,我查找的不是所有分支,而是我的本地分支及其各自的远程分支。
发布于 2016-04-12 06:08:38
对于我的repos,git branch -vv将输出类似于您所说的内容,但在某些情况下,它将输出:
$ git branch -lvv
branch1 3d52a6d some commit message 1
branch2 36c34dc some commit message 2
master f476f37 [origin/master] some commit message 3这意味着branch1和branch2在remote中不存在(在我的例子中,它们已经通过Bitbucket删除)
https://stackoverflow.com/questions/36557856
复制相似问题