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

Trabla: Git & GitLab: error: pathspec 'commit'' did not match any file(s) known to git.


Gitand GitLab error pathspec commit did not match any file(s) known to git

Trabla Description:

This example is shown in GitLab

Gitand GitLab error pathspec commit did not match any file(s) known to git - tutorial 1




Commit command

git commit -m 'first commit'
But execution in Windows Command Line show error
error: pathspec 'commit'' did not match any file(s) known to git.
Gitand GitLab error pathspec commit did not match any file(s) known to git - tutorial 2

Solving:

Trabla in single quotes 

git commit -m 'first commit'
Use double quotes :

git commit -m "first commit"

Gitand GitLab error pathspec commit did not match any file(s) known to git - tutorial 3









No comments:

Post a Comment