你可以将仓库克隆并推送到另一个远程仓库(在服务器上手动创建):
https://gitlab.example.com/user/Test1
)git clone --mirror https://gitlab.example.com/user/Test
cd Test # optionally rename the directory if you want to keep it
git remote remove origin
git remote add origin git@gitlab.example.com:user/Test1
git push --all origin
git push --tags origin
Test1
(确保更改路径和名称)--mirror
是正确的(我还应该使用push --all
和push --tags
)。 - Simon Doppler