Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
i am getting an error while trying to commit in git. what is the reason . i think everything is ok.

farooq@ubuntu:~/workspace/abproject$ git commit -m "First commit of assignment2_farooq" error: pathspec 'commit' did not match any file(s) known to git. error: pathspec 'of' did not match any file(s) known to git. error: pathspec 'abproject"' did not match any file(s) known to git.
Posted

1 solution

Obviously the problem is in the quotes, if you have copied and pasted from somewhere try typing the quoted comments " yourself, if that fails try a single ' quote.
 
Share this answer
 
Comments
codegeekalpha 6-Sep-15 7:24am    
it works. i can commit in repository. My university git is not fancy . I cant see my repository in University servers. Why is that.. I can commit using the Linux Terminal. But can not see my project in Personal university git website
Mehdi Gholam 6-Sep-15 7:53am    
Contact your university admin.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900