zoukankan      html  css  js  c++  java
  • 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确实在国内很慢。

  • 相关阅读:
    mysql替代like模糊查询的方法
    8个超实用的jQuery插件应用
    判断登陆设备是否为手机
    SQL tp3.2 批量更新 saveAll
    SQL-批量插入和批量更新
    防止手机端底部导航被搜索框顶起
    php COM
    thinkphp3.2 where 条件查询 复查的查询语句
    Form表单提交,js验证
    jupyter notebook 使用cmd命令窗口打开
  • 原文地址:https://www.cnblogs.com/gongyuhonglou/p/8671200.html
Copyright © 2011-2022 走看看