idea设置
1.git设置代理
yuwei@cqopc-yuwei MINGW64 /d/project/flink-1.11 (master)
$ git config --global http.proxy 'http://cqproxy01.unisinsight.com:8080'
yuwei@cqopc-yuwei MINGW64 /d/project/flink-1.11 (master)
$ git config --global https.proxy 'http://cqproxy01.unisinsight.com:8080'
git 取消代理
yuwei@cqopc-yuwei MINGW64 /d/project/master (master)
$ git config --global -l
http.proxy=http://cqproxy01.unisinsight.com:8080
https.proxy=http://cqproxy01.unisinsight.com:8080
$ git config --global --unset http.proxy
2.问题描述:Git在推送项目时报错:fatal: The remote end hung up unexpectedly。
问题原因:推送的文件太大。
解决方法:
1.修改设置git config文件的postBuffer的大小。(设置为500MB)
git config --local http.postBuffer 524288000
注:–local选项指定这个设置只对当前仓库生效。