码迷,mamicode.com
首页 > 其他好文 > 详细

git使用--停留在某次提交上,但是代码一直可以更新到最近一次提交的问题

时间:2014-09-24 11:54:06      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:使用   ar   sp   问题   on   c   代码   ad   ef   

gs(git status)一下,提示信息:

You are currently rebasing branch ‘master‘ on ‘6ff7d77‘.

  (all conflicts fixed: run "git rebase --continue”)

当前分支停留在“ 6ff7d77”提交上时,运行git rebase —continue后提示

error: Ref refs/heads/master is at 30222e596f87fe0ec2e74a4fe152d91af495e489 but expected 1f48a9a53201ca92f03d32d12f5a5a456f9b893c

fatal: Cannot lock the ref ‘refs/heads/master‘.

Could not move back to refs/heads/master

 

依次运行

git update-ref refs/heads/master 1f48a9a53201ca92f03d32d12f5a5a456f9b893c

rebase —continue

gs

根据gs后的提示操作

(这里我的提示是:git pull)

git使用--停留在某次提交上,但是代码一直可以更新到最近一次提交的问题

标签:使用   ar   sp   问题   on   c   代码   ad   ef   

原文地址:http://www.cnblogs.com/NINIiOS/p/3989842.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!