Sourcetree pushing the wrong newspaper

Source: Internet
Author: User

When I was using GitHub, I built a new project and put my code into the project, and suddenly, Sourcetree was not moving.


Note that this means that my file is too large to exceed the upload limit. In fact, I have this demo only 9.0M.

Baidu on the Internet, the results are

http://lichen.blog.51cto.com/697816/1193189

is the terminal input

    1. git  config http.postbuffer 524288000  
or join in. Git/config
  1. [HTTP]
  2. Postbuffer  =  524288000  


I posted the first command of the method.
But there is no. git/config under the Mac. Maybe, because I'm a github, not git.
continue Baidu keyword could not lock config file. git/config:no such file or directorylooking at this http://www.imooo.com/qiyeruanjian/industry/1006970.html
the problem is caused by the Http.postbuffer default limit of 1M. In the GIT configuration, change the Http.postbuffer variable to something larger, such as setting the upper limit to 500M:
git config--global http.postbuffer 524288000

where do you execute the above command?
Open the git Bash command-line tool.
be careful to add--global. A lot of information on the Internet has not added this parameter. Failure to do so will report the following error:
error:could not lock config file. git/config:no such file or directory.
It 's OK when it's posted.
finally upload the special to fill the map, haha everyone slowly pass ~ ~ Thank you all the big God!

Sourcetree pushing the wrong newspaper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.