![](/img/trans.png)
[英]How to connect BitBucket repository and existing local git project once there is already code on BitBucket
[英]Bind grabbed code to existing Bitbucket (Git) repository
bitbucket.org上托管着一个巨大的(超过500 Mbs)现有存储库。 出于某种原因,当我尝试将其克隆到本地环境时,它要花很长时间,即使一天也不够(超过24小时)。 但是,我可以非常快速地将其作为zip存档下载。 但是下载后,它需要将代码链接或绑定到现有的Bitbucket存储库。 我不确定是否可以,请分享您的想法。 任何帮助深表感谢。
也许只尝试克隆最新版本?
git clone --depth=1 <remote name>
如果那仍然很慢,我将尝试解压缩存档,创建新的仓库,然后设置remote
git remote add origin <remote name>
然后git fetch
获取引用(猜测它将缓慢运行,因此设置--depth
),创建本地分支并将上游设置为origin/master
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.