question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Installed in the normal way, as I have done previously. Now getting this error for some reason?:

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

From reading, it seems this is an error associated with typos in one line git commits, but cz seems to be working as before but throwing this error once I finish the questionaire. Your help much appreciated.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
riancintiyocommented, Oct 5, 2022

Try use git cz instead. It works for me.

1reaction
pedronastasicommented, Oct 24, 2022

I was also getting this issue . I’m using Yarn 3. git cz helped me

Read more comments on GitHub >

github_iconTop Results From Across the Web

pathspec 'commit' did not match any file(s) known to git - Stack ...
Whenever I use git commit -m , I receive an error message saying: git commit error:pathspect 'commit' did not match any file(s) known...
Read more >
pathspec 'commit' did not match any file(s) known to git · Issue ...
Thanks for cmder, I've been trying it for about a week and I came across an issue while committing. git add . works,...
Read more >
error pathspec did not match any file s known to git - Edureka
I'm unable to check out a branch in Git that I had worked on earlier. It is showing me the below message. Git:...
Read more >
Git: cannot checkout branch - error: pathspec '…' did not match ...
It just takes the information about new branches and actual code and it works fine after: git checkout. This will help you to...
Read more >
pathspec 'commit' did not match any files(s) known to git.
sign has no special meaning. ... error: pathspec 'commit'' did not match any file(s) known to git. C:\tmp\test>git commit -m "first commit ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found