This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. When trying to migrate a repo to Github | |
``` | |
git clone --bare ssh://git@gitserver.example.com:2222/project-name/repo-name.git #clone a bare repo locally | |
curl --header "Authorization: token <GITHUB API TOKEN>" --data '{"name": "repo-name", "description": "Migrated from project-name from gitserver.example.com" https://api.github.com/orgs/org-name/repos #create github repo | |
git push --mirror git@github.com:org-name/repo-name.git | |
``` | |
you'll see an error like this: |