简体   繁体   English

git clone所有远程存储库的地址

[英]git clone all remote repositories' address

Is there a way to clone a git project with more than one remote repos? 有没有一种方法可以克隆具有多个远程存储库的git项目? For example, in addition to "origin", I would like to have a few other remote repos to push and fetch the data. 例如,除了“起源”外,我还想拥有其他一些远程存储库来推送和获取数据。 Is it possible to get all the remote addresses from the git project cloned from? 是否可以从克隆的git项目中获取所有远程地址?

For example, in addition to "origin", I would like to have a few other remote repos to push and fetch the data. 例如,除了“起源”外,我还想拥有其他一些远程存储库来推送和获取数据。

Yes, you can have this. 是的,你可以有这个。

Is it possible to get all the remote addresses from the git project cloned from? 是否可以从克隆的git项目中获取所有远程地址?

If you have local access to the original repo the following command will work for you. 如果您可以本地访问原始存储库,则以下命令将为您工作。

git remote -v

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM