如何检索回购的远程git地址?

fan*_*ncy 173 git

如何检索回购的远程git地址?

我试过git remote但是只列出了分支.

Jan*_*rek 247

如果要显示远程分支的URL,请尝试:

git remote -v
Run Code Online (Sandbox Code Playgroud)

  • 也许你需要的是`git remote get-url remote-name` (2认同)

Von*_*onC 52

如果你有遥控器的名称,你将可以使用git 2.7(2015年第4季度),使用新git remote get-url命令:

git remote get-url origin
Run Code Online (Sandbox Code Playgroud)

(漂亮的吊坠git remote set-url origin <newurl>)

Ben Boeckel()提交96f78d3(2015年9月16日).(由Junio C Hamano合并- -提交e437cbd,2015年10月5日)mathstuf
gitster

remote:添加get-url子命令

扩展insteadOf是其中的一部分,ls-remote --url也没有办法扩展pushInsteadOf.
添加get-url子命令以便能够查询这两个子命令以及获取所有已配置URL的方法.