![](/img/trans.png)
[英]I am trying to interactive git rebase but it shows me mv: '<path>/git-rebase-todo.new' and '<path>/git-rebase-todo' are the same file
[英]interactive git rebase failed with “git-rebase-todo: No such file or directory”
当我做交互式git-rebase:
git rebase -i HEAD~2
表明:
C:\GnuWin32\bin\grep.exe: /cygdrive/xxx/.git/rebase-merge/git-rebase-todo: No such file or directory Nothing to do
( xxx
是项目路径)
但是git rebase branch_xxx
正在运行。
我确定之前没有任何rebase正在进行中(使用git rebase --abort
检查并使用干净的项目文件夹)
有人解决了这个吗? 我谷歌,但没有有用的提示。
我的问题是由于我的gitconfig缺少-w和-n标志:
[core]
editor = sublime -w -n
从代码项目 :
[-w和-n参数]传递给Sublime Text,基本上告诉它在不加载任何先前打开的窗口(-n标志)的情况下运行,并等待用户退出以将执行传递回调用进程( -w标志,用于“等待”)
你不应该一起使用Cygwin和GnuWin32。 删除/卸载GnuWin32的所有痕迹,然后重试。
我还建议设置一个编辑器
要回复评论,您应该不需要GnuWin32。 例如,即使Cygwin的基本安装包含grep
,也包含更新的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.