|
3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
delete_all_github_branches.py | 3 years ago | |
mirror_github_stars.py | 3 years ago | |
move2gitea.py | 3 years ago |
bye bye microsoft
This python script will migrate your github.com projects into a gitea instance.
When you just want to clone all your repositories and starred repositories to a local filedrive, try mygithub
# install dependencies if not done yet
sudo pip install gitpyton requests
# export GITEA env variables
export GITEA_HOST=git.osuv.de
export GITEA_UID=1 # the UID of your user
export GITEA_TOKEN=abc123 # create an access token for your user
# export github user and password
export GITHUB_USER=markuman
export GITHUB_PASSWORD=xxx # yout github.com password, when you need to migrate private repositories
# run
./move2gitea.py
# install dependencies if not done yet
sudo pip install gitpyton requests
# export GITEA env variables
export GITEA_HOST=git.osuv.de
export GITEA_UID=1 # the UID of your user
export GITEA_TOKEN=abc123 # create an access token for your used
# export github user and password
export GITHUB_USER=markuman
# run
./mirror_github_stars.py