This is the first problem I've encountered as a rookie just learning to use git.
The problem is that after git clone a repository, it adds two files to it, but when git commits, it says error: pathspec 'add README.txt.........' did not match any file(s) known to git.
When I looked at the command more closely, I found that I was missing the -m parameter in my git commit, and the error was: git commit 'add README.txt'.
The error is: git commit 'add README.txt_.....'
It should read: git commit -m 'add README.txt......'
Read More:
- pathspec commit did not match any files known to git
- pathspec ‘master’ did not match any files known to git
- error: pathspec ‘feature_card‘ did not match any file(s) known to git
- How to cancel the commit, how to cancel the commit after git commit, and how to change the submitted content
- Error: pathspec ‘origin / xxx’ did not match any file (s) known to GIT
- [Git] git pull pull remote git push to remote git commit submit reject
- How to solve the problem of “please enter a commit message to explain why this merge is necessary” when git merges branches?
- Using the pit in Git that rebase encountered two could not apply XXXX
- git push fatal Error: HttpRequestException encountered.
- Mybatis openSession.commit () manually submit data and openSession.commit (true) automatically submit data
- Git error prompt: fatal: not a git repository (or any of the parent directories):. Git
- [Solved] ERROR: commit 60acc70: missing Change-Id in message footer
- BarTender operation encountered the problem of “OLE DB encountered error 0x80004005”
- Git prompts another git process sees to be running in this repository, e.g. an editor opened by
- The COMMIT TRANSACTION request has no corresponding BEGIN
- Solve “error: failed to commit transaction” in arch Linux
- GitHub desktop upload file error commit failed – exit code 1 received
- Common solutions to errors in checkout or commit of SVN
- An error occurred while loading commit signatures
- gerrit error: missing Change-Id in commit message footer