How to Clone All Repositories from a GitHub or Sourcehut Account

1 · Christian Cleberg · March 19, 2021, midnight
Cloning from GitHub If you're like me and use a lot of different devices (and sometimes decide to just wipe your device and start with a new OS), you probably know the pain of cloning all your old code repositories down to your local file system. If you're using GitHub, you can easily clone all of your code back down in just seconds. First, create a bash script - I do so by opening a new file in nano, but you can use gedit, vim, or something else: nano clone_github_repos.sh Next, paste in the f...