'Maybe git-rebase is broken'

后端 未结 3 1135
鱼传尺愫
鱼传尺愫 2021-01-02 09:52

3rd Update

More information:

  • commands in the git-bash shell work as expected

    • in the git-bash shell, Git\\bin\\git.exe is called

相关标签:
3条回答
  • 2021-01-02 10:13

    Not definitive (it doesn't explain why git is working on one of my computers but not the other), but it does provide some insight into what might be going on: https://groups.google.com/forum/#!topic/msysgit/VrQLAgQwJHM

    I have installed the portable version, added it to my path, and git is working as expected again.

    0 讨论(0)
  • 2021-01-02 10:22

    Can you find C:\Program Files (x86)\Git\libexec\git-core\git-rebase which is a shell script? It should be there in order to work.

    0 讨论(0)
  • 2021-01-02 10:34

    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.

    0 讨论(0)
提交回复
热议问题