Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
When I write a command line:
git commit -m ™Initial commit™
I got an error:
error: pathspec '"commit\342\204\242"' did not match any file(s) known to git.
How can i fix it?
It's probably those hilarious ™ trademark symbols:
$ echo -e "\0342\0204\0242" ™
Try typing in, by hand, git commit -m "initial commit", and using the standard " quotes -- ASCII octal 042, decimal 34, hex 0x22.
git commit -m "initial commit"
"
Add a comment
It seems this is because there is no file that git could be put into the repository.
Create an empty file (for example .gitlock), and then run this command before committing:
git add .gitlock
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.