
整个流程截图
1、从原始地址 clone 一份 bare 仓库,私有项目要输入密码:
git clone --bare https://thinkphp@bitbucket.org/thinkphp/tingshu.git 2、在GIT@ OSC上
创建一个项目
3、以 mirror 的方式把刚才 clone 的项目 push 到 GIT@OSC 上: (如果提示输入 git 用户密码,请到 http://git.oschina.net/keys 添加 SSH Key;或者用https方式,提交时填写用户名和密码)
cd tingshu.git
git push --mirror https://git.oschina.net/ThinkPHP/tingshu.git
方法来至:http://git.oschina.net/oschina/git-osc/issues/20#note_192
本文详细介绍了一种将Bitbucket上的bare仓库迁移到GIT@OSC的方法,包括clone仓库、创建新项目和使用mirror方式推送代码,适用于私有项目的迁移。
499

被折叠的 条评论
为什么被折叠?



