[英]How to get the git repository that I cloned before?
克隆git存储库后,如何获取存储库文件?
例如)
在“git clone http://sunglim@github.com/asdf/asdf.git ”之后
我想知道URL(http://sunglim@github.com/asdf/asdf.git)。
我怎样才能做到这一点?
你可以使用remote show
,虽然它会问你的密钥:
git remote show origin | grep 'Fetch URL'
如果你查看.git / config,应该有一个类似于以下的块:
[remote "origin"]
fetch = ...
url = <this is the url you want>
您可以使用命令行获取此信息
git config --get remote.origin.url
希望能得到你想要的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.