您的位置:首页 > 编程语言

导入 Bitbucket/Github 项目到 Git@OSC

2013-08-20 00:00 627 查看


整个流程截图

1、从原始地址 clone 一份 bare 仓库,私有项目要输入密码:

git clone --bare  https://thinkphp@bitbucket.org/thinkphp/tingshu.git[/code] 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[/code] 方法来至:http://git.oschina.net/oschina/git-osc/issues/20#note_192
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Git@OSC Bitbucket Github