git push 代码报错——(change 24610 closed)
来源:互联网 发布:sparklehorse知乎 编辑:程序博客网 时间:2024/05/22 17:23
今天向远程分支push代码的时候发现push失败,具体失败信息如下:
Counting objects: 132, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (20/20), 1.66 KiB | 0 bytes/s, done.
Total 20 (delta 14), reused 0 (delta 0)
remote: Resolving deltas: 100% (14/14)
remote: Processing changes: refs: 1, done
remote: (W) e56e4ce: commit subject >65 characters; use shorter first paragraph
remote: (W) ad06d3f: commit subject >65 characters; use shorter first paragraph
remote: (W) ad06d3f: commit message lines >70 characters; manually wrap lines
To ssh:*********************************
! [remote rejected] **** -> ***** (change 24610 closed)
error: failed to push some refs to 'ssh://***************'
失败原因:我上一次提交代码的时候,虽然提交成功了,但是由于其它原因,没有merge到远程分支里边,被废弃掉了。但是那次提交成功是有一个对应commit id。
解决方法:1、git log --查看提交记录
commit ad*** 本次提交失败
commit e5*** 上一次提交,然后废弃了
commit f8*** 最近的一次提交记录
2、将代码回退到“最近一次的提交记录”版本,具体操作:git reset --soft f8***
3、然后刷新一下本地的代码,并检查一下,确认自己本次提交的代码,重新提交一次就成功了。
以上是我遇到的一个push失败的问题,请大家作为参考。
0 0
- git push 代码报错——(change 24610 closed)
- git eclipse push 报错—(change 164 closed)
- Git push remote rejected {change ### closed}
- Git push 代码报错
- git push报错,
- 在git上push代码时缺少Change-Id
- git push 新项目报错
- Git首次push报错
- git本地push代码报broken pipe
- Git入门——版本回退'reset'与reset后的'push报错'
- git push origin master报错,解决方法
- git push首次提交报错问题解决
- git push -u origin XXX 报错
- git push -u origin master报错
- git push首次提交报错问题解决
- git push 报错duplicate request
- git push远程报错问题
- git push -u orgin master报错
- 常用格式判断(邮箱、电话号码、身份证件)
- 求解偏微分方程开源有限元软件deal.II学习--Step 12
- 图像中某一块区域数据的选定获取
- CentOS网络配置后无法访问外网的解决方法
- 2016年规划
- git push 代码报错——(change 24610 closed)
- 华为交换机支持Vlanif数
- C++里面表达(a/b)的写法
- strongswan_freeradius_openldap
- Apple Catching POJ 2385
- 求解偏微分方程开源有限元软件deal.II学习--Step 13
- php JQuery中的AJax提交过来的是乱码 不同浏览器下
- linux通配符
- centos7 网速很慢解决办法----关闭ipv6