在一个本地目录中克隆多个git存储库? [英] Clone multiple git repositories in one local directory?
本文介绍了在一个本地目录中克隆多个git存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用一个命令git clone
多个git存储库(例如:在一个本地目录中的git clone "1.git,2.git,3.git.."
?
Is it possible to git clone
multiple git repositories with one command (for example: git clone "1.git,2.git,3.git.."
in one local directory?
推荐答案
这几乎是为自己解决的问题:
This is how almost solved for myself:
git clone https://myrepo.com/folder.git && \
git clone https://myrepo.com/folder2.git && \
git clone https://myrepo.com/folder3.git
使用Sublime或VSCode之类的代码编辑器可以更轻松地构建它.
This is way easier to build using a code editor like Sublime or VSCode.
对我来说唯一的缺点是:如果您没有存储凭据,则需要一遍又一遍地输入.
The only downside for me: If you did not store your credentials, you're gonna have to type it over and over.
这篇关于在一个本地目录中克隆多个git存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文