gitのドキュメント
git branch
-v
-vv
--verbose
When in list mode, show sha1 and commit subject line for each head, along with relationship to upstream branch (if any). If given twice, print the name of the upstream branch, as well (see also git remote show <remote>).
翻訳命令
各ハッシュ値を表示する(ローカル)がコミット・レコードの現在のブランチを指し、その相対位置と上流分岐(もしあれば)
-v
との-verbose
効果の
-vv
名前は、上流分岐に表示されています
例えば
$ git branch -vv
cyr_branch 689c970 [origin/cyr_branch: behind 2] default
* master f1e2810 finally
test-mysql e2fa7b9 add .gitignore
test-network 0d426ce add .gitignore
xu_branch e55fcf1 [origin/xu_branch: ahead 1] debug
zfc_branch e4a40a5 [origin/zfc_branch] merge
cyr_branch
上流分岐origin/cyr_branch
後者の二つの背後前者
xu_branch
の上流分岐origin/xu_branch
後者主要前者
zfc_branch
のために上流分岐origin/zfc_branch
同期の両方
test-mysql
とtest-network
対応ない上流分岐
master
上流分岐であるorigin/master
が、示されていない、私が理由で、この関係を推測します表示する必要が固定されないので、
コンビネーションの使用状況
すべてのローカルおよびリモートブランチ名を表示-a
$ git branch -a
cyr_branch
* master
test-mysql
test-network
xu_branch
zfc_branch
remotes/origin/cyr_branch
remotes/origin/master
remotes/origin/xu_branch
remotes/origin/zfc_branch
-of
$ git branch -av
cyr_branch 689c970 [behind 2] default
* master f1e2810 finally
test-mysql e2fa7b9 add .gitignore
test-network 0d426ce add .gitignore
xu_branch e55fcf1 [ahead 1] debug
zfc_branch e4a40a5 merge
remotes/origin/cyr_branch 1e63522 cyr
remotes/origin/master f1e2810 finally
remotes/origin/xu_branch 1c82da3 adjust db
remotes/origin/zfc_branch e4a40a5 merge
-avv
$ git branch -avv
cyr_branch 689c970 [origin/cyr_branch: behind 2] default
* master f1e2810 finally
test-mysql e2fa7b9 add .gitignore
test-network 0d426ce add .gitignore
xu_branch e55fcf1 [origin/xu_branch: ahead 1] debug
zfc_branch e4a40a5 [origin/zfc_branch] merge
remotes/origin/cyr_branch 1e63522 cyr
remotes/origin/master f1e2810 finally
remotes/origin/xu_branch 1c82da3 adjust db
remotes/origin/zfc_branch e4a40a5 merge