git commit error: pathspec 'commit' did not match any file(s) known to git

后端 未结 12 1481
北海茫月
北海茫月 2021-01-30 08:04

I am trying to upload a Ruby app to Heroku. I start with git init and then I type git add . and then I use git commit -m initial commit. <

12条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 08:35

    I would just like to add--

    In windows the commit message should be in double quotes (git commit -m "initial commit" instead of git commit -m 'initial commit'), as I spent about an hour, just to figure out that single quote is not working in windows.

提交回复
热议问题