Mat*_*der 28 git github bitbucket
我有一个我从GitHub克隆的repo,想要在BitBucket上拥有这个repo的镜像.有什么方法可以做到吗?就像我想的那样,在回购中有两个起源.
Von*_*onC 42
您只需添加第二个遥控器:
git remote add bitbucket /url/to/am/empty/bitbucket/repo
Run Code Online (Sandbox Code Playgroud)
把所有东西推到bitbucket:
git push --mirror bitbucket
Run Code Online (Sandbox Code Playgroud)
您实际上可以从本地仓库中拉出或推送到多个遥控器.
如下所述,在Rahulmohan Kolakandy的回答中,如果你在谈论一个内部部署BitBucket服务器(而不是bitbucket.org),那么你可以利用BitBucket Server智能镜像.
这里解释的方法更好/sf/answers/895702321/
git remote set-url origin --add https://bitbucket.org/YOU/YOUR_REPO.git
最近版本的git处理同一个来源的多个URL;)
归档时间: |
|
查看次数: |
15262 次 |
最近记录: |