markdown 奇怪的是“git没有干净地退出(退出代码1)”

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 奇怪的是“git没有干净地退出(退出代码1)”相关的知识,希望对你有一定的参考价值。

The error message "git did not exit cleanly (exit code 1)" is a very general error message, in most of scenarios, just clean up local repository to resolve it, but sometimes it not actully caused by "not clean".  

In my case, the reason is I tried to push large file that size over the postbuffer (default as 1M).  

### Solution
Edit `.gitconfig`, set `http.postBuffer` to larger amout.  

1. Set post buffer to 10M :  
  `git config --global http.postBuffer 102400`   
2. Check result :  
By command `git config --global --list` or open global wide `.gitconfig` file to check, will recored as below 
	```
	[http]
		postBuffer = 102400
	```
	
### Reference
[TortoiseGit-git did not exit cleanly (exit code 1)](https://stackoverflow.com/questions/22165953/tortoisegit-git-did-not-exit-cleanly-exit-code-1/39951063#39951063)  

以上是关于markdown 奇怪的是“git没有干净地退出(退出代码1)”的主要内容,如果未能解决你的问题,请参考以下文章

Pygments 代码块格式化程序为 Markdown 代码块添加了奇怪的空格

markdown 修复了奇怪的吞咽错误

markdown 退出git''奇怪''屏幕

markdown Android布局背景图片不显示的奇怪问题

markdown Ruby bundle install中出现奇怪的OpenSSL错误

如何在 CSDN 的 MarkDown 中编辑数学公式