Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 9 down vote accepted

Try using double quotes for "Initial project version"

share|improve this answer

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 https://github.com/YuriyHorobey/lp.git
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.