git没有';我拉的时候不会自动提交

git没有';我拉的时候不会自动提交,git,git-pull,Git,Git Pull,出于某种原因,每当我从master中提取时,git都不会自动将更改提交到本地分支。我得到以下错误: /usr/bin/mate -w: /usr/bin/mate: No such file or directory error: There was a problem with the editor '/usr/bin/mate -w'. Not committing merge; use 'git commit' to complete the merge. 我必须在拉取后手动执行提交。这

出于某种原因,每当我从master中提取时,git都不会自动将更改提交到本地分支。我得到以下错误:

/usr/bin/mate -w: /usr/bin/mate: No such file or directory
error: There was a problem with the editor '/usr/bin/mate -w'.
Not committing merge; use 'git commit' to complete the merge.

我必须在拉取后手动执行提交。这是我安装新机器后才开始的,我的旧机器上从未发生过。感谢您的帮助

如果我在某个玩具本地存储库中设置我的核心编辑器,我可以重现您的问题

git config core.editor "/usr/bin/mate -w"
然后尝试运行使用编辑器的命令:

$ git commit
/usr/bin/mate -w: /usr/bin/mate: No such file or directory
error: There was a problem with the editor '/usr/bin/mate -w'.
Please supply the message using either -m or -F option.
我收到此错误是因为我的计算机上没有名为
/usr/bin/mate
的文件或目录(我没有安装TextMate)

由于类似的原因,您会遇到类似的错误:您的计算机上安装了TextMate,但未安装在
/usr/bin/mate
,或者根本未安装。你也应该

  • 使用机器上已安装的文本编辑器;或者
  • 如果您坚持使用TextMate,请确保它已实际安装;然后跑

    git config core.editor "<path_to_mate> -w"
    

  • 如果我将核心编辑器设置在某个玩具本地存储库中,我可以重现您的问题

    git config core.editor "/usr/bin/mate -w"
    
    然后尝试运行使用编辑器的命令:

    $ git commit
    /usr/bin/mate -w: /usr/bin/mate: No such file or directory
    error: There was a problem with the editor '/usr/bin/mate -w'.
    Please supply the message using either -m or -F option.
    
    我收到此错误是因为我的计算机上没有名为
    /usr/bin/mate
    的文件或目录(我没有安装TextMate)

    由于类似的原因,您会遇到类似的错误:您的计算机上安装了TextMate,但未安装在
    /usr/bin/mate
    ,或者根本未安装。你也应该

  • 使用机器上已安装的文本编辑器;或者
  • 如果您坚持使用TextMate,请确保它已实际安装;然后跑

    git config core.editor "<path_to_mate> -w"
    

  • 如果我将核心编辑器设置在某个玩具本地存储库中,我可以重现您的问题

    git config core.editor "/usr/bin/mate -w"
    
    然后尝试运行使用编辑器的命令:

    $ git commit
    /usr/bin/mate -w: /usr/bin/mate: No such file or directory
    error: There was a problem with the editor '/usr/bin/mate -w'.
    Please supply the message using either -m or -F option.
    
    我收到此错误是因为我的计算机上没有名为
    /usr/bin/mate
    的文件或目录(我没有安装TextMate)

    由于类似的原因,您会遇到类似的错误:您的计算机上安装了TextMate,但未安装在
    /usr/bin/mate
    ,或者根本未安装。你也应该

  • 使用机器上已安装的文本编辑器;或者
  • 如果您坚持使用TextMate,请确保它已实际安装;然后跑

    git config core.editor "<path_to_mate> -w"
    

  • 如果我将核心编辑器设置在某个玩具本地存储库中,我可以重现您的问题

    git config core.editor "/usr/bin/mate -w"
    
    然后尝试运行使用编辑器的命令:

    $ git commit
    /usr/bin/mate -w: /usr/bin/mate: No such file or directory
    error: There was a problem with the editor '/usr/bin/mate -w'.
    Please supply the message using either -m or -F option.
    
    我收到此错误是因为我的计算机上没有名为
    /usr/bin/mate
    的文件或目录(我没有安装TextMate)

    由于类似的原因,您会遇到类似的错误:您的计算机上安装了TextMate,但未安装在
    /usr/bin/mate
    ,或者根本未安装。你也应该

  • 使用机器上已安装的文本编辑器;或者
  • 如果您坚持使用TextMate,请确保它已实际安装;然后跑

    git config core.editor "<path_to_mate> -w"
    



  • 是否已安装text mate?是否已阅读错误消息?Git找不到您的文本编辑器(TextMate)。确保它已安装,并且
    mate
    在您的路径上。@Jubobs所有这些完整路径使我认为这不是
    $path
    问题。@Biffen TextMate甚至可能没有安装在OP的新机器上,但Git可能已配置为使用它。@Jubobs是的。这与
    $PATH
    变量无关。是否安装了text mate?是否阅读了错误消息?Git找不到您的文本编辑器(TextMate)。确保它已安装,并且
    mate
    在您的路径上。@Jubobs所有这些完整路径使我认为这不是
    $path
    问题。@Biffen TextMate甚至可能没有安装在OP的新机器上,但Git可能已配置为使用它。@Jubobs是的。这与
    $PATH
    变量无关。是否安装了text mate?是否阅读了错误消息?Git找不到您的文本编辑器(TextMate)。确保它已安装,并且
    mate
    在您的路径上。@Jubobs所有这些完整路径使我认为这不是
    $path
    问题。@Biffen TextMate甚至可能没有安装在OP的新机器上,但Git可能已配置为使用它。@Jubobs是的。这与
    $PATH
    变量无关。是否安装了text mate?是否阅读了错误消息?Git找不到您的文本编辑器(TextMate)。确保它已安装,并且
    mate
    在您的路径上。@Jubobs所有这些完整路径使我认为这不是
    $path
    问题。@Biffen TextMate甚至可能没有安装在OP的新机器上,但Git可能已配置为使用它。@Jubobs是的。这与
    $PATH
    变量无关。我使用Ruby mine作为我的文本编辑器,我没有安装textmate。你在以前的机器上使用RubyMine作为Git的编辑器吗?我认为Git不允许您使用IDE作为其核心编辑器。或者您的意思是从RubyMine中使用Git?通过运行
    Git config core.editor
    ,您可以确定Git配置为使用哪个编辑器,但是我们没有取得任何进展,因为你还没有回答我的问题:在什么意义上你使用或想要使用RubyMine和Git?@ruby_newbie这很奇怪。。。我刚刚检查了Git源代码,只有当核心编辑器(即Git配置为使用的编辑器)出现问题时,才会使用消息
    编辑器有问题。但如果您的核心编辑器是
    vim
    ,为什么Git会抱怨
    mate
    ?。。。请运行以下测试:
    cd~;mkdir测试git编辑器和cd测试git编辑器;git-init;触摸自述;git添加自述;git提交
    。如果您收到一条错误消息,它会说什么?我正在使用Ruby mine作为我的文本编辑器,我没有安装textmate。您在以前的机器上使用RubyMine作为Git的编辑器吗?我不认为Git允许你这么做