- from: https://github.com/mbohun/test_repo_for_mirror
- to:
- GitLab
- Bitbucket
- TODO: custom/private git repo (with/without API)
- TODO: https://gitea.io/en-us/
...on my laptop:
git clone --bare https://github.com/mbohun/test_repo_for_mirror.git test_repo_for_mirror.git
cd test_repo_for_mirror.git
git push --mirror "https://oauth2:${GITLAB_TOKEN}@gitlab.com/mbohun/test_mirror_gitlab_repo.git"
git push --mirror "https://mbohun:${BITBUCKET_TOKEN}@bitbucket.org/mbohun/test_mirror_bitbucket_repo.git"
# NOTE: ALTHOUGH the URL format "https://x-token-auth:${BITBUCKET_TOKEN}@bitbucket.org/..." *DOES* work
# for 'git clone ...'
# it does *NOT* work for this 'git push --mirror ...' scenario
#
# git push --mirror "https://x-token-auth:${BITBUCKET_TOKEN}@bitbucket.org/mbohun/test_mirror_bitbucket_repo.git"
- TODO