How to git commit a single file/directory

前端 未结 7 1773
我寻月下人不归
我寻月下人不归 2020-12-04 06:58

Tried the following command:

git commit path/to/my/file.ext -m \'my notes\'

Receive an error in git version 1.5.2.1:

error:         


        
7条回答
  •  遥遥无期
    2020-12-04 07:22

    For git 1.9.5 on Windows 7: "my Notes" (double quotes) corrected this issue. In my case putting the file(s) before or after the -m 'message'. made no difference; using single quotes was the problem.

提交回复
热议问题