RajSanpui
RajSanpui

Reputation: 12104

Is there a way to git clone multiple .git repositories at one shot, all exisiting in same folder in remote machine?

I have a git machine, where there is a folder: git:/opt/git/third_party> Inside third_party there are multiple .git repoitories.

I wish to clone all the .git inside third_party at one shot:

Something like: git clone kingsmasher1@git:/opt/git/third_party/*.git

Is it possible?

Upvotes: 1

Views: 154

Answers (1)

yegorich
yegorich

Reputation: 4849

Alternative approach

You can use mr tool. With mr you can specify a file, where you list all of your repositories. Via mr checkout you'll clone all configured repos and with mr update you'll update all of them etc.

Upvotes: 1

Related Questions