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
- git config http.postbuffer 524288000  
or join in. Git/config
- [HTTP]
- 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