天天看点

pathspec commit did not match any files known to git

引号居然也能出问题:

C:\lysoftware\gitprj\fsdgit>git commit -m 'first commit'

error: pathspec 'commit'' did not match any file(s) known to git

C:\lysoftware\gitprj\fsdgit>git commit -m "first commit"

[master (root-commit) dc2093a] first commit

 93 files changed, 4453 insertions(+)

 create mode 100644 .classpath

 create mode 100644 .project

 create mode 100644 .settings/org.eclipse.core.resources.prefs

 create mode 100644 .settings/org.eclipse.jdt.apt.core.prefs

 create mode 100644 .settings/org.eclipse.jdt.core.prefs

 create mode 100644 .settings/org.eclipse.m2e.core.prefs