- pull异常:Pull is not possible because you have unmerged files.
1.1. pull会使用git merge导致冲突,需要将冲突的文件resolve掉 git add -u, git commit之后才能成功pull.
1.2. 如果想放弃本地的文件修改,可以使用git reset --hard FETCH_HEAD,FETCH_HEAD表示上一次成功git pull之后形成的commit点。然后git pull.
注意:
git merge会形成MERGE-HEAD(FETCH-HEAD) 。git push会形成HEAD这样的引用。HEAD代表本地最近成功push后形成的引用。 - push异常: fatal: the remote end hung up unexpectedly
2.1. 远端服务器意外挂了, 分析原因要么缓存不够要么网速不行
2.2. 解决方案
2.2.1. 修改缓存:
git config --global http.postBuffer 524288000
2.2.2. 设置低速限制及时间
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
git errors
最新推荐文章于 2025-06-18 11:09:32 发布