bitbucket被封了, 转github, 有个5个分支,近万commit的工程,如何平滑的倒入github,保存分支和commit记录?

2013 年 5 月 21 日
 fangzhzh
现在发帖会不会太早,大家还没上班?
8345 次点击
所在节点    问与答
37 条回复
alexrezit
2013 年 5 月 21 日
push 不就得了...
aveline
2013 年 5 月 21 日
直接 push 一次呗,
Issues 导入的话我上次写了个脚本不过要所有参与者的用户名和密码就是了能保证所有 ID 都一致。
panxianhai
2013 年 5 月 21 日
remote 到新地址,然后和楼上一样
dorentus
2013 年 5 月 21 日
clino
2013 年 5 月 21 日
git push github --all
aveline
2013 年 5 月 21 日
补上蛋疼的脚本。

https://gist.github.com/ym/5616781
BOYPT
2013 年 5 月 21 日
要看人家原来是git仓库还是mercurial仓库吧,mercurial的不可能直接push给git的说。
fangzhzh
2013 年 5 月 21 日
@alexrezit
@aveline
@panxianhai
我直接在原来的工程目录下, 这样操作?

git remote set-url origin https://github.com/fangzhzh/abc.git
git push
alexrezit
2013 年 5 月 21 日
@fangzhzh
为啥不用 SSH 那个... =.=
fangzhzh
2013 年 5 月 21 日
@alexrezit 有什么区别?
alexrezit
2013 年 5 月 21 日
@fangzhzh
SSH 的看着比较顺眼.
clino
2013 年 5 月 21 日
@BOYPT mercurial 装上 hg-git 插件就可以直接push给git了
fangzhzh
2013 年 5 月 21 日
@alexrezit 以前有家公司禁了ssh, 只能用https, 所以习惯了
fangzhzh
2013 年 5 月 21 日
1G的东西, push中间总会hang up,求破
fangzhzh
2013 年 5 月 21 日
@alexrezit
@aveline
@clino
1G的东西, push中间总会hang up,求破
66beta
2013 年 5 月 21 日
靠,真的啊,被封了啊!!!
是不是cloudfront的问题啊??
clino
2013 年 5 月 21 日
@fangzhzh 怎么会这么大呢?二进制数据太多了?
建议可以从旧版本先push,这样数据量小些,然后再逐步地push新版本
例如在旧版本上打tag,然后
git push github tag1:master
这样
swulling
2013 年 5 月 21 日
@fangzhzh
打tar包,上传到国外VPS,解压,push!

不过我们公司github速度很好,这个一般是速度问题
fangzhzh
2013 年 5 月 21 日
@swulling 100k,但是也不行
fangzhzh
2013 年 5 月 21 日
@alexrezit
@aveline
@swulling
ssh和https 速度上有差异吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/69596

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX