-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git commit error: pathspec 'commit' did not match any file(s) known to git #2052
Comments
Single quotes cannot be used in cmd.exe sessions. |
@daxgames |
git commit -m "Double quotes" |
Thanks pal, very useful! |
Me aparece el mismo error, ya probé comillas simples y dobles y nada,
|
Try |
Wow it worked, i used double quotes and it committed. Thanks.
|
i used double quotes it did not work. |
@isaacton What was the full command line that was used? |
Possible dupe of #847 ?
Thanks for cmder, I've been trying it for about a week and I came across an issue while committing.
git add .
works, thengit commit -m 'header works'
returns this:
git commit error: pathspec 'header' did not match any file(s) known to git
git commit error: pathspec 'works' did not match any file(s) known to git
if I then try
git push origin header
returns
already up-to-date
which is not true 😭
with git bash the commit goes through without issues and so does the push attempt.
Is there any fix for this?
thanks very much guys!
The text was updated successfully, but these errors were encountered: