码迷,mamicode.com
首页 > 其他好文 > 详细

Git commit报错

时间:2014-12-04 12:24:08      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:io   ar   使用   java   on   as   line   br   file   

Git commit的时候出现如下错`

C:/Program Files (x86)/Git/bin/vim: -c: line 0: syntax error near unexpected token `(‘
C:/Program Files (x86)/Git/bin/vim: -c: line 0: `C:/Program Files (x86)/Git/bin/vim \$@\‘
error: There was a problem with the editor ‘C:/Program Files (x86)/Git/bin/vim‘.
Please supply the message using either -m or -F option.

这是因为 git commit 后会默认找 C:/Program Files (x86)/Git/bin/vim 用这个来作为message的编辑器,但是没找打到或别的原因

处理

1: 可以使用 git commit -m "message" 直接设置提交message

2: 或在项目目录下git config core.editor vim来设置git message 代开的编辑器

Git commit报错

标签:io   ar   使用   java   on   as   line   br   file   

原文地址:http://my.oschina.net/emmet/blog/352141

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!