yangkeao
V2EX  ›  问与答

git 提交时的问题

  •  
  •   yangkeao · Jul 7, 2014 · 3104 views
    This topic created in 4368 days ago, the information mentioned may be changed or developed.
    情景:
    想魔泊网上上传代码,如果每次都用zip,就太慢了。于是想用git。在github上开了个repo。

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

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

    有没有什么能在线编译的?
    Supplement 1  ·  Jul 8, 2014
    ignore之后仍然有问题,错误error: RPC failed; result=56, HTTP code = 200

    可能不是大小问题。

    提交到魔泊网,需要用其它的git,好像魔泊网自己没有git
    7 replies    2014-07-08 23:27:40 +08:00
    xxr3376
        1
    xxr3376  
       Jul 7, 2014
    用.gitignore忽略掉
    ChanneW
        2
    ChanneW  
       Jul 8, 2014
    提交到 魔泊 跟 github 有什么关系呢?
    ChanneW
        3
    ChanneW  
       Jul 8, 2014
    如果是文件大小问题可以
    git config http.postBuffer 512000000
    yangkeao
        4
    yangkeao  
    OP
       Jul 8, 2014
    @ChanneW 魔泊好像不能直接git到他那里。(没给地址啊!!!)
    ChanneW
        5
    ChanneW  
       Jul 8, 2014
    @yangkeao 额,他们用的 github 和 git@OSC 的仓库. 好懒,不过也挺好.
    yangkeao
        6
    yangkeao  
    OP
       Jul 8, 2014
    @ChanneW 但这样的话,我的整个项目(包括node_modules)都要放到github上了,主要是一般不传node_modules
    ChanneW
        7
    ChanneW  
       Jul 8, 2014
    node_modules 下一般是git 的 submodule .
    魔泊 不会自动拉取 submodule 么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 19:39 · PVG 03:39 · LAX 12:39 · JFK 15:39
    ♥ Do have faith in what you're doing.