Clustergit

I was searching for something to help me manage the multiple git folders in my ~/dust/code directory, and see quickly which ones have new versions that could be pulled, and came across clustergit which does exactly what I was looking for.

Perhaps there was already an easy way to do this.

12 Likes

This definitely beats my messy bash for loop, hah. Stoked to try this out, thanks for sharing!

If I ever get to the point where I can finish my git guide for Norns admin like that sftp guide I wrote, this seems like a potentially cool thing to mention at the end.

1 Like

haven’t tried it, but poking around I found this fork that makes the script work asynchronously:

speeds it up a bit.

EDIT: does require python 3.

I’ve been using this to update everything.

cd into ~/dust/code then:

find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;

even quicker if you save it as an alias in the .bashrc file, then you can just type ‘update’ (or whatever) and it will pull everything :slight_smile:

6 Likes

That’s just showing off!! Nice code.

1 Like

hah, I’d be lying if I said I didn’t steal it from stack overflow :wink:

2 Likes