Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Git on Windows XP Pro and I'm trying to apply it to my project.

I'm trying git-ize a legacy directory structure:

C:\src>git init
C:\src>git add *.c
C:\src>git commit -m 'initial project version'
error: pathspec 'project' did not match any file(s) known to git.
error: pathspec 'version'' did not match any file(s) known to git.

Any ideas what the problem could be? What does this error mean?

"git status" displays many "new file:" lines so I don't know why it says it doesn't match anything.

share|improve this question
up vote 11 down vote accepted

Try using double quotes for "Initial project version"

share|improve this answer
Is this a operating system thing? I had the same issue on Windows. – Merritt Apr 22 at 19:51

I had the same problem and the answer from BloodPhilia worked!

I just wanted to move one of my projects to the GitHub, so I just copied commands from my GitHub repository setup:

git init
touch README
git add README
git commit -m 'first commit'
git remote add origin
git push -u origin master

(touch will not work under Windows, just create a README file) and this one had failed:

git commit -m 'first commit'

I've replaced ' with " and it works!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .