Git 如何修复引用标头错误?
git fetch github+refs/heads/n:refs/remotes/github/n 致命:找不到远程引用/heads/n :git fetch github+refs/heads/n-caf:refs/remotes/github/n-caf 致命:不是git存储库:'/home/movingshadowninja/DU/.repo/projects/kernel/oneplus/msm8994.git' :export GIT_DIR=/home/movingshadownija/DU/.repo/projects/device/oppo/common.GITGit 如何修复引用标头错误?,git,github,version-control,repo,Git,Github,Version Control,Repo,git fetch github+refs/heads/n:refs/remotes/github/n 致命:找不到远程引用/heads/n :git fetch github+refs/heads/n-caf:refs/remotes/github/n-caf 致命:不是git存储库:'/home/movingshadowninja/DU/.repo/projects/kernel/oneplus/msm8994.git' :export GIT_DIR=/home/movingshadown
我总是会犯这样的错误,我该如何着手修复它呢 请确认以下事项:
git remote-v
fetch=+refs/heads/*:refs/remotes/github/*
如果仍然存在错误,您可以将远程回购克隆到其他文件夹中,这是最简单的方法。如果您进一步澄清您的问题,我们将更容易提供帮助。你能加上一些背景吗?。。。也许还需要对格式进行一些修改。眼睛有点痛。。。