Skip to content
Snippets Groups Projects
Commit 83db2787 authored by Bensong Liu's avatar Bensong Liu
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
# gitlab2github
This tool pull all public repo of some users FROM gitlab TO github.
Gitlab is the actual dev repo, and github is a mirror.
Dependencies: fish, jq, git
#!/usr/bin/fish
log 0 → 100644
curl https://git.recolic.net/api/v4/users/root/projects
curl -u "rtestgithubapi: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" --data '{"name":"NEW_REPO_NAME"}' https://api.github.com/user/repos
curl -u "rtestgithubapi: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" --request PATCH --data '{"name":"NEW_REPO_NAME", "description":"a new description"}' https://api.github.com/repos/rtestgithubapi/NEW_REPO_NAME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment