There could be situation the place it’s essential obtain or clone a number of tasks on the identical time.
This may be daunting job if accomplished one after the other, so I considered writing a PowerShell or Python script.
However as you all know why to reinvent the wheel if one thing is present, so I researched the web and located ghorg.
Cloning a single repository is easy and could be accomplished utilizing the git clone command. Nonetheless, what if it’s essential clone a number of tasks from the identical group? In such instances, utilizing the git clone command for every repository could be time-consuming and repetitive.
ghorg is a instrument that permits builders to clone a number of repositories from a GitHub/Gitlab/Gittea/Bitbucket group in a single go.
It was created to make it simpler for builders to clone all repositories from a company, particularly when they should work with a number of tasks on the identical time.
Right here is the syntax we used:
.ghorg.exe clone 12345678 –base-url=https://gitlab.com –scm=gitlab –token=$token –preserve-dir –path
12345678 is our group which has a number of tasks, subgroups and so on. in it.
Obtain ghorg from under hyperlink:
Extract the recordsdata
Now you can make the most of gitlab Pipeline or PowerShell and obtain all of the tasks in a bunch or complete group if required.
Discover syntax of ghorg utilizing assist command
.ghorg.exe –assist
Pleased ghorging
Thanks for studying…
Tech Wizard