Where does Git store remote tracking branches

后端 未结 2 712
自闭症患者
自闭症患者 2020-12-09 21:17

I have to Git repos repo1 and repo2. There are three branches master, alpha and beta in repo1.

相关标签:
2条回答
  • 2020-12-09 22:00

    The refs are probably "packed" in .git/packed-refs.

    0 讨论(0)
  • 2020-12-09 22:07

    The information is in .git/config and is updated by tools like git remote when you add or modify remotes. There is a manual page on git-config. If you search for "tracking branches" you'll see details of how they are configured.

    0 讨论(0)
提交回复
热议问题