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

后端 未结 12 1612
北海茫月
北海茫月 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条回答
  •  不要未来只要你来
    2021-01-30 08:34

    In my case the problem was I had forgotten to add the switch -m before the quoted comment. It may be a common error too, and the error message received is exactly the same

提交回复
热议问题