Since GitHub allows to store unlimited private repositories, I moved everything there. It’s really great to have such sources storage for free.
Once I pushed everything to GitHub, I need to sync my repositories over all environments I have. I wrote a simple Python script below to clone all my GitHub repositories:
My use case could not fit everyone, but you can adjust my script to cover your use cases. Everything I need is:
- Clone all my repos to some directory
- Clone all forks into ‘forks’ sub-directory
- Clone all repose from organizations I’m a member of into the ‘orgname’ sub-directory
- Have a simple way to execute
git pull
for each repository
I hope, this script will be helpful for somebody except me.