2

有没有办法单独或一次显示有关存储库遥控器的所有已知信息?

4

4 回答 4

8

你可以看到原始配置

cat .git/config

或使用remote子命令

git remote -v
于 2011-11-27T19:32:54.683 回答
4

这简单:

git remote show
git remote show <specific-remote>
于 2011-11-27T19:29:45.160 回答
1

git remote应该在这种情况下工作。

git remote show origin(或您可能拥有的任何其他遥控器)。

于 2011-11-27T19:30:31.237 回答
0

此别名将提供当前遥控器的详细信息:

alias showremote="git remote show $(git remote show)"
于 2021-07-19T20:13:00.977 回答