相关疑难解决方法(0)

Git - How to fix "corrupted" interactive rebase?

I managed to create a little mess in my local git repository. I was trying to fix a broken commit by using the following instructions. Before running the "git commit --amend" (and after the git rebase --interactive) I decided that my changes were incorrect and so I executed "git reset HEAD --hard". Not a good idea, I tell you.

现在,交互式基础似乎被"卡住了".Git将当前分支显示为(| REBASE-m).我的存储库中的每个命令(cd ..,ls,git rebase ...)都会出现以下错误:

cat:.git/rebase-merge/head-name:没有这样的文件或目录

以下是git rebase --abort的样子:

$ git rebase --abort
cat: c:/_work/project/src/git/.git/rebase-merge/quiet: No such file or directory …
Run Code Online (Sandbox Code Playgroud)

git msysgit git-rebase

124
推荐指数
8
解决办法
7万
查看次数

Git rebase失败了

我试图改变一位同事的工作.

首先,我得到了大量的冲突,其中<<<<<头部接缝包含新代码.

然后过了一会儿我得到以下错误:

fatal: update_ref failed for ref 'refs/heads/dev_504': 
cannot lock ref     'refs/heads/dev_504': ref refs/heads/dev_504 is at
 XXXXXXX 
 but expected     XXXXXXXX
Could not move back to refs/heads/dev_504
Run Code Online (Sandbox Code Playgroud)

然后,如果我尝试继续,我得到以下错误:

fatal: cannot resume: .git/rebase-apply/final-commit does not exist.
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题,以便rebase不会出错?

git version-control github rebase git-rebase

28
推荐指数
3
解决办法
2万
查看次数

GIT refs总是不区分大小写吗?

我正在我的本地机器(OS-X 10.10)上进行测试,该机器使用不区分大小写的文件系统(HFS + [CI]) - 当我重置到头部时:

$ git reset head --hard
$ git reset HEAD --hard
Run Code Online (Sandbox Code Playgroud)

$ git checkout 4f2c
$ git checkout 4F2C
Run Code Online (Sandbox Code Playgroud)

有完全相同的结果.据我所知,GIT将refs存储在内部,./git/refs但底层文件系统的区分大小写会影响结果吗?

我会在区分大小写的文件系统上获得相同的结果吗?

git

6
推荐指数
2
解决办法
482
查看次数

标签 统计

git ×3

git-rebase ×2

github ×1

msysgit ×1

rebase ×1

version-control ×1