2015-12-06 48 views
0

發送提交消息給出錯誤pathspec did not match。我已經使用雙引號而不是單引號。 enter image description hereGit commit不能使用消息

更新當我做了承諾,而消息我得到這個 -

# 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: 
+0

您是否在嘗試提交之前執行了更改? – Alik

+0

'git status'說什麼? –

+0

先檢查git狀態。 – Sangeeta

回答

1

嘗試下列操作之一:

  1. 檢查,查看是否有添加任何承諾
  2. 混帳提交(沒有消息)看看你是否得到提交編輯器
  3. 嘗試執行命令vi git bash而不是CMD。看
  4. 檢查一下您是否改名的任何文件的文件系統上,而不是通過git mv
+0

我做了一個git狀態,並且有很多更改要提交'您的分支是最新的'origin /主'。 要提交的更改: (使用「git reset HEAD ...」停用)' – mjosh

+0

這就是爲什麼您會收到此消息,您需要添加並提交更改。添加所有文件,你可以使用'git add -A' – CodeWizard

+0

我已經使用git add。添加所有更改 – mjosh

0

這不是Git的它的一個窗口CMDLINE事情

使用2個雙引號來解決這一問題

git commit -m「」您的提交信息「」

相關問題