Listing and cloning private GitHub repos - some fun with bash and curl
February 14, 2020
My current role is awesome - I get do do some agile coaching, quite a lot of teaching, reading up on new tech and from time to time some programming.
Yesterday evening someone just blurted out: what if all of us died at once?! All the code and documentation would be hidden in a cloud somewhere and we will not be able to get it.
That cloud is GitHub and I’m sure it would be safe and that the risk that we all die at the same time is relatively low. Then again - I have booked a raw chicken tasting for our next offsite …
Just kidding - but when that was said my programmer-self sprung to life and I deviced, in my head, a simple script to make an offline copy.
This post describes that script. Oh - I only had 30 minutes spare time to do it...