• Git


    我使用的是SourceTree Mac版,提交到BitBucket时出现 一直处于 POST git-receive-pack (chunked)  状态,经过百度,解决问题

    在使用SourceTree上传资料的时候,遇到

    
    
    POST git-receive-pack (chunked) 

    看到这样一则

    This is a bug in Git; when using HTTPS it will use chunked encoding for uploads above a certain size. Those do not work. 
     
    A trivial fix is to tell git to not chunk until some ridiculously large size value, such as: 
     
    git config http.postBuffer 524288000 

    于是尝试 .git/config 加入

    [http] 
        postBuffer = 524288000

    主要是限制文件大小的原因.

    出现 POST git-receive-pack (chunked) 的原因就是 当使用 HTTPS 提交到 Git 上时使用不检查加密要是东西过多将导致提交停止
     
    解决方案:
    方案1>  使用 Git 提交代码
    进入到要提交的代码的目录,里面包含 .git 文件夹,输入指令 git config http.postBuffer 524288000
     
    方案2> 使用 SourceTreee 提交代码
    如图按照顺序依次点击在最后一步增加
    [http] 
        postBuffer = 524288000
    
    
     
    再次提交将会成功 

    经过修改,解决了这个问题,

    出现了类似  POST git-receive-pack (27836345 bytes) 这样的文字,

    但由于没有继续提示,我还以为还停留在这个阶段,取消了好几次,重试了几次,后面用代理提交成功过一次。

    看来BitBucket确实在国内很慢。

  • 相关阅读:
    P2761 软件补丁问题
    CF1335F Robots on a Grid
    [bzoj2088]P3505 [POI2010]TEL-Teleportation
    CF1335E Three Blocks Palindrome
    P3831 [SHOI2012]回家的路
    P4568 [JLOI2011]飞行路线(分层图)
    P4774 [NOI2018]屠龙勇士
    P2480 [SDOI2010]古代猪文
    CF #632 (Div. 2) 对应题号CF1333
    BSGS 和扩展
  • 原文地址:https://www.cnblogs.com/gongyuhonglou/p/8671200.html
Copyright © 2020-2023  润新知