整个流程截图
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