繁体   English   中英

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

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

我无法运行命令: git add 。 && git commit -m "Initial commit' 我给出一个错误:Pathspec commit does not match any fields known to git

提交时的引用问题在这里并不总是很重要:在 CMD 中,这会起作用。

'&&' 可能有问题,具体取决于您的 bash 会话。

试试吧

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

暂无
暂无

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

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