0

I want to commit the projects I have to my repository and I issued the following command:

$ git add README

I then get the following error:

fatal: pathspec 'README' did not match any files.

Does anyone know what I can do please?

1 Answer 1

2

Try to do in your folder.

ls 

What do you get ?

It seems that README is not found in your folder.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, it now works. What I did was that I ran 'git init' in the folder and it works!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.