bitbucketからgithubへ引っ越し

ChatGPT5.5 Thinkingに、repo引っ越し手順を聞いて実行。

# 1. Clone from Bitbucket

git clone --mirror https://bitbucket.org/aaa/bbb.git

# 2. Enter the mirror repo

cd bbb.git

# 3. Add GitHub as another remote

git remote add github https://github.com/aaa/bbb.git

# 4. Because HTTPS push to GitHub failed, switch GitHub remote to SSH

git remote set-url github git@github.com:ykawato/bousai-mail.git

# 5. Confirm GitHub SSH authentication

ssh -T git@github.com

# Expected:

# Hi ykawato! You've successfully authenticated, but GitHub does not provide shell access.

# 6. Push master explicitly

git push github master:master

# 7. Confirm master exists on GitHub

git ls-remote github refs/heads/master

# Expected hash:

# 5098e4f810ee303b74afb88c1fe43e8527f1a671	refs/heads/master

# 8. Push tags

git push github --tags

この記事を書いた人