- 旧サーバからデータ取得する
git clone --mirror git@example.com:example.git
- 新サーバへデータをプッシュする
cd example
git push --mirror git@new-example.com:example.git
- 既存リポジトリの remote origin を変更する
git remote set-url origin git@new-example.com:example.git
More than 5 years have passed since last update.
git clone --mirror git@example.com:example.git
cd example
git push --mirror git@new-example.com:example.git
git remote set-url origin git@new-example.com:example.git
Register as a new user and use Qiita more conveniently