[英]git error did not match any file(s) known to git
Running the following command: 运行以下命令:
git push deploy
I get this error: 我收到此错误:
remote: error: pathspec '"\\342\\200\\223f"' did not match any file(s) known to git. 远程:错误:pathspec'“ \\ 342 \\ 200 \\ 223f”'与git已知的任何文件都不匹配。
Unsure what it means. 不确定是什么意思。 This is a new repo which pushes a --bare with a hook:
这是一个新的仓库,它用钩子将--bare推入:
#!/bin/sh
GIT_WORK_TREE=/srv/project/WEBSITE
export GIT_WORK_TREE
git checkout –f
Running Ubuntu Server 运行Ubuntu服务器
I was seeing this same error and was able to remove it by changing my post-receive to: 我看到了同样的错误,并且可以通过将接收后的信息更改为以下内容来将其删除:
#!/bin/sh
git --work-tree=/srv/project/WEBSITE checkout -f
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.