Git提交不使用消息

时间:2015-12-06 09:01:57

标签: git github

发送提交错误pathspec did not match。我已经在使用双引号而不是单引号。 enter image description here

更新当我在没有消息的情况下进行提交时,我得到了这个 -

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:

2 个答案:

答案 0 :(得分:1)

请尝试以下方法之一:

  1. 检查是否添加了要提交的内容
  2. git commit(不带消息),看看你是否得到了提交编辑器
  3. 尝试执行命令vi git bash而不是CMD。
  4. 检查您是否已重命名文件系统上的任何文件,而不是git mv

答案 1 :(得分:0)

它不是git它是一个windows cmdline的东西

使用2x双引号来解决问题

git commit -m""你的提交信息""