git push bug

fast-forwards

$ git push

$ git push --help

# git pull
$ gp
To http://git.xgqfrms.xyz:8888/fe/web.git
! [rejected] feature-system-guide-> feature-system-guide (fetch first)
error: failed to push some refs to 'http://git.xgqfrms.xyz:8888/fe/web.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
$ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1.90 KiB | 1.90 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: error executing git hook
To http://git.xgqfrms.xyz:8888/eric/test.git
! [remote rejected] abc -> abc (pre-receive hook declined)
error: failed to push some refs to 'http://git.xgqfrms.xyz:8888/eric/test.git'
git pull origin <your-branch>
git push origin <your-branch>

solutions

git fetch

$ git fetch

rm -rf .git/gc.log

$ git pull origin abc

From http://git.xgqfrms.xyz:8888/eric/test
* branch abc -> FETCH_HEAD
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log.
Automatic cleanup will not be performed until the file is removed. warning: There are too many unreachable loose objects; run 'git prune' to remove them. Already up to date.
$ rm -rf .git/gc.log

refs



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. linux添加启动器图标(Ubuntu为例)
  2. 怎样实现了捕获应用中的日志在android开发中
  3. oracle中一些用法总结
  4. shell zsh
  5. windows服务相关
  6. oracle处理考勤时间,拆分考勤时间段的sql语句
  7. svn 终端命令
  8. openSSL漏洞原理及安全加固
  9. iOS-xib(自定义UITableViewCell)
  10. (一)DOM 常用操作 —— “查找”节点
  11. 常用JS对象的方法总结
  12. .Net语言 APP开发平台——Smobiler学习日志:SmoOne新增考勤功能
  13. c/c++ 求一个整数转换为二进制数时中‘1’的个数
  14. pycharm自动创建python头文件
  15. .Net文件压缩
  16. Codeforces Beta Round #70 (Div. 2)
  17. 9.12 h5日记
  18. Webview跨域访问风险
  19. gcc命令中参数c和o混合使用的详解
  20. JavaScript原型与继承的秘密

热门文章

  1. 转 3 jmeter的两种录制方法
  2. SpringBoot配置文件基础部分说明
  3. day03 函数基本语法及特性 2. 参数与局部变量 3. 返回值 嵌套函数 4.递归 5.匿名函数 6.函数式编程介绍 7.高阶函数 8.内置函数
  4. 8.3 Customizing Git - Git Hooks 钩子 自动拉取 自动部署 提交工作流钩子,电子邮件工作流钩子和其他钩子
  5. TCP连接的超时时间
  6. loj10006数列分段
  7. 济南学习D1T5__HEAP
  8. SparkStreaming算子操作,Output操作
  9. redis学习教程三《发送订阅、事务、连接》
  10. Spring 启动脚本