git push出现Unpack error,check server log错误
2018-10-19 15:25
1406 查看
操作步骤:
步骤一、本地添加了一个文件,commit并push到远程仓库(管理员还没合进去)
步骤二、本地代码被不小心删除
步骤三、重新clone一份最新的代码到本地,并通过git pull操作将步骤一提交的内容重新pull到本地
步骤四、做了点修改并重新push
此时就出现了如下提示:
标题网上有人说这是偶尔会碰到的,但是用这种操作步骤我这里是必现,这里说下解决方案:
[code]git push --no-thin origin HEAD:refs/for/currentbranch
解释:关键点是--no-thin选项,默认情况下,git push会在向服务器推送时进行优化,以将所发送的包降低到最小。做法是发送时忽略本地仓库和远端仓库中共有的部分。即git push默认是采用--thin选项的
参考:https://www.geek-share.com/detail/2695115389.html
阅读更多
相关文章推荐
- git push出现unpack failed: error Missing tree错误的解决方法
- git 提示Push错误“Error writing request body to server”
- git提交代码时出现错误:error : unpack failed : error Missing commit XXX
- MS SQL错误:SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems
- git服务器无法clone,出现remote: error: inflate: data stream error (incorrect data check)错误解决方法
- 解决Eclipse新版本出现An error has occurred,See error log for more details的错误
- Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误。服务器返回的状态码为: 500
- FCKeditor出现"XML request error: Internal Server Error(500)"错误的解决办法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- GitLab 使用git push 出现RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
- 关于 SQL Server ErrorLog 错误日志
- 编译php错误代码configure: error: Try adding --with-zlib-dir=. Please check config.log for more information.
- 安装Destoon系统出现500 Internal Server Error错误的原因
- 搭建 hexo,在执行 hexo deploy 后,出现 error deployer not found:git 的错误
- android 6.0编译时出现ERROR:Security problem ,see jack server log
- 搭建openstack时,出现Request returned failure status. HTTPInternalServerError (HTTP 500) 错误!
- git push错误:RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 The remote end hung up
- phpmyadmin,访问主页报错: Error during session start; please check your PHP and/or webserver log file and c
- 编译安装PHP出现configure: error: mysql configure failed. Please check config.log的解决方法
- 内核编译出现错误:[scripts/kconfig/dochecklxdialog] Error 1