问题一:上传GIT项目报fatal: the remote end hung up unexpectedly错误
上传项目报fatal: the remote end hung up unexpectedly的错误,
应该是项目太大的原因,要么是网络不行,要么墙的原因
解决办法:
修改提交缓存大小为500M,或者更大的数字
git config --global http.postBuffer 524288000
# some comments below report having to double the value:
git config --global http.postBuffer 1048576000
或者是在克隆/创建版本库生成的.git/config 文件中加入:
[http]
postBuffer = 524288000
问题二:git push报错:The current branch master has no upstream branch
进行git push操作时报错:fatal: The current branch master has no upstream branch.

原因:
没有将本地的分支与远程仓库的分支进行关联
通过git branch查看本地分支只有master

通过git branch -a查看远程分支,有master和remotes/origin/master两个

这时由于远程仓库太多,且分支较多。在默认情况下,git push时一般会上传到origin下的master分支上,然而当repository和branch过多,而又没有设置关联时,git就会产生疑问,因为它无法判断你的push目标
解决方式一
与远程仓库建立关联,运行后即可通过 git push 推送成功
使用git push --set-upstream origin master命令
方式二
如果已在远程github仓库中手动建过同名的本地分支也可通过另一种方法
使用git push -u origin master命令