社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
git remote -v
git remote set-url origin git@git.bbb.net:360-fyd/fang.git
git remote -v
git branch -a
git push origin master:master
#从旧址clone下来
git clone --bare gitlab@github.news.com/groups:test.com.git
# push到新址
git push --mirror gitlab@github.xx.com:newgroups/newtest.com.git
# 将本地的url修改为新的url
git remote set-url origin gitlab@github.xx.com:newgroups/newtest.com.git
填写url的时候要注意特殊字符的转义,url转义:
https:*@*.com:*@*.com@gitlab.*.com/aaa/test.git
# 会发生url解析错误,改为
https:*%40*.com:*%40*.com@gitlab.*.com/aaa/test.git
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!