The collection of scripts for git.
- Save specified repositories.
- Save all repos hosted by GitHub user.
- Save by lists.
Install git
, curl
, jq and MiceWeb.
Create a folder where you want your repositories downloaded in a drive where you have enough space available (recommended a small cluster size).
Install WSL (requires about 2GB disk space), Cygwin, Git Bash, or some other tool that enables Bash functionality in Windows.
Follow the above section.
Open a terminal in the folder and run ./save
or other script with arguments.
./save https://github.com/defder-su/SaveSites.git
./save https://github.com/defder-su
./save_by_list example.txt
./save_by_list collection.txt
./save_collection
Updating resaved repositories (using git fetch
and git pull
), updating all saved with a command like ./save_updates
.
How to save related data like issues, pull requests etc.? See thread.
Clone repositories into subfolders.