A script that helps clone existing git repos to Radicle.
In order to use this script you will already need Radicle installed on your machine. Follow the instructions here before moving forward.
After installing be sure to initialize Radicle with the following command:
rad auth
Then spin up the node to make sure that is working as well.
rad node start
This script is written in Go so there are a few install options.
brew install stevedylandev/radicalize/radicalize
Have Go installed and run this command.
go install github.com/stevedylandev/radicalize@latest
For this method simply clone the repo, build, and install with Go
git clone https://github.com/stevedylandev/radicalize
cd radicalize
go build
go install .
This CLI (radicalize
) has two commands:
To start backing up your local repos simply run the command radicalize local
in the parent directory of all your projects. This will creep through all directories for .git repos on a surface level, so if you have sub directories you will want to navigate to those separately. After finding all git repos you can select which ones you would like to init to your Radicle node. Once you have confirmed the selection it will work through each repo and initialize it.
Private Repos
By default the program will make repos public, however you can pass in the --private
flag so all selected repos will be private instead
radicalize local --private
The CLI can also pull the latest 100 repos from any given user or organization on GitHub, clone them, and initalize them locally as well. Run radicalize remote
which will then prompt you for the username or org name to search. Once provided it will put the repos into a selection list where you can start typing the name as well as scroll through it. Once all are selected it will begin the process of cloning and initalizing.