logoalt Hacker News

ferfumarmatoday at 2:04 PM2 repliesview on HN

Can jj iterate through a list of repositories and clone them all to local storage?

It isn't very hard to make a bash script to do it, but I have about six github repos, all of which frequently need to be put on a new machine. that kind of functionality would be cool to have out of the box.


Replies

hosteurtoday at 2:07 PM

    for url in url1 url2 ..; do git clone $url; done
That’s not really a script but a basic one liner.
show 1 reply
saghmtoday at 2:20 PM

Are you accessing these boxes via ssh or using them directly? If it's via ssh, I'd expect that you would already be using the clipboard for copying the names of them rather than typing them out manually, at which point copying `git clone <a> && git clone <b> && ...` would achieve the same thing.