0

I have been working on a flutter project in between I tried to initialise git on that project. first I used git init and then git add --all.All the changes are visible on git status. Then I user git commit -m 'commit message' and got this error-error: pathspec 'commit' did not match any file(s) known to git so i used-git commit -a -m 'commit message'.so i got this error

how can I commit all these changes?

1

1 Answer 1

1

If you're using VSCode or Android Studio as your IDE you can try using the VersionControl tool built in and will help you with that. For your first commit you could use something like this: git commit -m "initial commit".

Also, possible duplicate of this: git commit error: pathspec 'commit' did not match any file(s) known to git

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

1 Comment

it was the issue of using single quotes for the comment.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.