Git:如何列出带有跟踪远程信息的分支?

标签 git tracking git-branch

我想要一份所有分支机构的列表,其中包含有关他们跟踪的内容的信息。即:

$ git branch -a -???
master  <-> origin/master
new_menu  <-> origin/feature1
remotes/origin/master
remotes/origin/feature1

有什么办法可以实现吗?

最佳答案

详细是你想要的:

git branch -a -v

git branch -a -vv

--verbose

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.

关于Git:如何列出带有跟踪远程信息的分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7729982/

相关文章:

git - 是否有 TFS Git API 用于获取文件夹中文件的上次修改日期?

git - 在 Github 中 merge pull 请求中的一些提交

object - 用opencv跟踪矩形

php - 从 Tracker 的角度看 Pixel+Cookie 转化跟踪

Git merge 错误

git - 可以使用 git-branch 而不是 git-checkout 创建跟踪分支吗?

xcode - 当项目文件更改时,如何防止 Xcode 4 与 git 分支崩溃?

git - pull 请求成功后在 Git 中更改分支和删除分支

git - 在上游项目强制推送到 master 后,如何修复 git 子树?

python - 推荐点击/事件跟踪机制(python、django、celery、mongo 等)