V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yangkeao
V2EX  ›  问与答

git 提交时的问题

  •  
  •   yangkeao · 2014-07-07 23:41:28 +08:00 · 2516 次点击
    这是一个创建于 3582 天前的主题,其中的信息可能已经有所发展或是发生改变。
    情景:
    想魔泊网上上传代码,如果每次都用zip,就太慢了。于是想用git。在github上开了个repo。

    但是node.js在开源中放入node_modules不太好吧。但是为了能正常使用,我就这么干了。

    但是git push时可能是总的过大,各种报错。 比如error: RPC failed; result=56, HTTP code = 200

    有没有什么能在线编译的?
    第 1 条附言  ·  2014-07-08 09:22:45 +08:00
    ignore之后仍然有问题,错误error: RPC failed; result=56, HTTP code = 200

    可能不是大小问题。

    提交到魔泊网,需要用其它的git,好像魔泊网自己没有git
    7 条回复    2014-07-08 23:27:40 +08:00
    xxr3376
        1
    xxr3376  
       2014-07-07 23:57:53 +08:00
    用.gitignore忽略掉
    ChanneW
        2
    ChanneW  
       2014-07-08 00:09:13 +08:00
    提交到 魔泊 跟 github 有什么关系呢?
    ChanneW
        3
    ChanneW  
       2014-07-08 00:11:06 +08:00
    如果是文件大小问题可以
    git config http.postBuffer 512000000
    yangkeao
        4
    yangkeao  
    OP
       2014-07-08 09:24:58 +08:00
    @ChanneW 魔泊好像不能直接git到他那里。(没给地址啊!!!)
    ChanneW
        5
    ChanneW  
       2014-07-08 21:16:48 +08:00
    @yangkeao 额,他们用的 github 和 git@OSC 的仓库. 好懒,不过也挺好.
    yangkeao
        6
    yangkeao  
    OP
       2014-07-08 21:46:25 +08:00
    @ChanneW 但这样的话,我的整个项目(包括node_modules)都要放到github上了,主要是一般不传node_modules
    ChanneW
        7
    ChanneW  
       2014-07-08 23:27:40 +08:00
    node_modules 下一般是git 的 submodule .
    魔泊 不会自动拉取 submodule 么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3724 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:31 · PVG 18:31 · LAX 03:31 · JFK 06:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.