'也许git-rebase被打破了' [英] 'Maybe git-rebase is broken'
问题描述
第三次更新
更多信息: 在git-bash shell中,git-bash shell按预期工作
-
Git \ bin\git.exe是称为
-
Git \ bin是sh.exe所在的地方
,Git \ cmd \ git.exe被称为
非常令人沮丧...
$ b
第二次更新
看起来,所有由.exe文件实现的git命令都可以工作:git -fetch.exe,git-merge.exe,git-push.exe等。
看起来所有的命令都是以脚本实现的,而不是 work:
Git\libexec\git-core\git-pull
Git\libexec\\ \\ git-core \\ git-rebase
等。所以,无论git.exe调用来运行 libexec \ git-core
脚本似乎都是蠢蠢欲动的...
第一次更新
在这里,我们再次回顾......git pull横向偏移(很确定它在昨天工作):
I:\Work\bitbucket\PluralSight\proj1 [work2]> git stat
分支work2没有提交,工作目录干净
I:\Work\bitbucket\PluralSight\proj1 [work2]> git fetch
'https://user@bitbucket.org'的密码:
I:\Work\bitbucket\PluralSight\proj1 [work2]> git pull
*致命:'pull'似乎是一个git命令,但我们
无法执行它。也许git-pull坏了?*
I:\Work\bitbucket\PluralSight\proj1 [work2]>
我已卸载/重新安装msysgit。我在PowerShell和cmd.exe中得到了相同的结果。
原始文章
[工作] GT; git rebase master
致命:'rebase'似乎是一个git
命令,但我们无法执行它。
也许git-rebase坏了?
只需在Win7x64上重新安装mSysGit。 PATH现在包括:
$ $ p code C:\程序文件(x86)\Git\cmd
C: \程序文件(x86)\Git\bin
关于发生什么问题的任何想法?我搜索了GitHub,但没有找到任何信息...
我知道这个问题很老,但我遇到了类似的问题。它可能会帮助别人。
为了避免MinGW make的问题,我必须重命名 sh.exe
以确保它不在路径中。之后,诸如 git rebase
之类的命令不再有效,它提供了与问题中相同的错误:
致命:'rebase'似乎是一个git
命令,但我们无法执行它。
也许git-rebase坏了?
只要我还原 sh.exe
, git rebase
重新开始工作。
3rd Update
More information:
commands in the git-bash shell work as expected
in the git-bash shell, Git\bin\git.exe is called
Git\bin is where sh.exe lives
in PowerShel (or cmd, or tcc), Git\cmd\git.exe is called
even after adding Git\bin to the PATH (after Git\cmd), the scripts don't work
Very frustrating...
2nd Update
It appears all the git commands implemented by .exe files work: git-fetch.exe, git-merge.exe, git-push.exe, etc.
It appears all the commands implemented as scripts to not work:
Git\libexec\git-core\git-pull
Git\libexec\git-core\git-rebase
etc. So, whatever git.exe is calling to run the libexec\git-core
scripts appears to be farkled...
1st update
Here we go again... "git pull" has gone sideways (pretty sure it was working yesterday):
I:\Work\bitbucket\PluralSight\proj1 [work2]> git stat
On branch work2 nothing to commit, working directory clean
I:\Work\bitbucket\PluralSight\proj1 [work2]> git fetch
Password for 'https://user@bitbucket.org':
I:\Work\bitbucket\PluralSight\proj1 [work2]> git pull
*fatal: 'pull' appears to be a git command, but we
were not able to execute it. Maybe git-pull is broken?*
I:\Work\bitbucket\PluralSight\proj1 [work2]>
I have uninstalled/reinstalled msysgit. I get the same results in PowerShell and cmd.exe.
Original Post
[work]> git rebase master
fatal: 'rebase' appears to be a git
command, but we were not able to execute it.
Maybe git-rebase is broken?
Just reinstalled mSysGit on Win7x64. The PATH now includes:
C:\Program Files (x86)\Git\cmd
C:\Program Files (x86)\Git\bin
Any ideas on what's going wrong? I searched on GitHub, but didn't find any info there...
I known this question is quite old but I ran into a similar problem. It may help someone else.
To avoid problems with MinGW make, I had to rename sh.exe
to ensure it was not in the path. After that, commands like git rebase
were not working anymore giving the same error as in the question:
fatal: 'rebase' appears to be a git
command, but we were not able to execute it.
Maybe git-rebase is broken?
As soon as I restored sh.exe
, git rebase
restarted to work.
这篇关于'也许git-rebase被打破了'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!