Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在查看 .git/config,但有没有一种快速的方法可以在命令行上获取它?
要检查默认的远程上游远程和分支,请在命令行上键入以下内容:
git remote -v
如果您需要同时查看远程分支 [注意这是非常冗长的]:
git remote show origin
这将告诉您哪些上游遥控器可用,哪些正在被跟踪等。