简体   繁体   English

无法运行命令: git add 。 && git commit -m "初始提交"

[英]Can not run the command: git add . && git commit -m "Initial commit'

I can not run the command: git add .我无法运行命令: git add 。 && git commit -m "Initial commit' I give an error: Pathspec commit did not match any fields known to git && git commit -m "Initial commit' 我给出一个错误:Pathspec commit does not match any fields known to git

The quote issue on commit does not always matter here: in a CMD, that would work.提交时的引用问题在这里并不总是很重要:在 CMD 中,这会起作用。

The '&&' can be problematic depending on your bash session. '&&' 可能有问题,具体取决于您的 bash 会话。

Try instead试试吧

 git add .; git commit -m "Initial commit"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM