2013-12-16 28 views
0

我可以提交使用Git用下面的命令:git的承諾-a「我的評論」不工作

git commit -a 

但是後來我進入與VIM註釋。我寧願做這一切與一個命令,以便香港專業教育學院嘗試了以下內容:

git commit -a "My comment" 

但後來我得到這個消息:

fatal: Paths with -a does not make sense. 

回答

6

你可能想

git commit -m "My comment" 

git commit -am "My comment" 

a(全部)和m(評論消息)參數。

+1

還檢查'git的承諾--help',只是爲了好玩 – rednaw

0

添加您的修改&添加的文件:git add -A,然後提交您的更改:git commit -m "your message"