多个git在包含多个存储库的文件夹中拉出 [英] Multiple git pull in one folder containing multiple repository
本文介绍了多个git在包含多个存储库的文件夹中拉出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个可以自动执行git pull的脚本。
我使用的是ubuntu,我有一个文件夹gitrepos,它有许多git的git repos克隆。在我所有的回购。
say
[gitrepos]
[repo1]
[repo2]
[repo3]
...
我想要一个脚本来做所有repox的git pull
注意repo的名称是不同的。
任何shell或py脚本都可以使用这个功能吗?
解决方案
看一看 mr ,这是一个专门用于此目的的工具。
I am using ubuntu and i have a folder gitrepos which has many clone of multiple git repos from github.
i want one script which can automatically do a git pull in all my repos.
say
[gitrepos]
[repo1]
[repo2]
[repo3]
...
i want a script to do a git pull from all repox
note the repo name are different.
any shell or py script available for this ?
解决方案
Have a look at mr, a tool meant for exactly this.
这篇关于多个git在包含多个存储库的文件夹中拉出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文