简体   繁体   English

git错误与git已知的任何文件都不匹配

[英]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.

相关问题 尝试切换到 master 分支时出现“错误:pathspec 'master' 与 git 已知的任何文件都不匹配” - "error: pathspec 'master' did not match any file(s) known to git" when trying to switch to master branch 用Yocto构建Linux映像时,pathspec'gnulib'与git已知的任何文件都不匹配 - pathspec 'gnulib' did not match any file(s) known to git while building Linux image with Yocto 当我执行“git push origin master”时,Github 出错(错误:src refspec master 不匹配) - Error in Github when I do “git push origin master” (error: src refspec master does not match any) Git:错误src refspec与任何不匹配; Windows和Linux上的不同行为 - Git: error src refspec does not match any; different behavior on Windows and Linux Git推送到cPanel帐户 - 推送没有更新修改过的文件 - Git push to cPanel account - Push did not update modified file Git +智能Http(s):403错误 - Git + Smart Http(s): 403 Error git是如何处理几个补丁中的一个的? - how did git handle one of several patches? 为什么我必须运行此git命令? - why did I have to run this git command? 如何将标准输出写入 git bash 上的任何文件? - how can I write stdout to any file on git bash? 无法在.gitconfig文件中添加(任何)全局git配置 - Cannot add(any of) global git configurations in .gitconfig file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM