我按照Overleaf上的说明将本地存储库推送到overleaf v2(as detailed on their website)上的空白项目。
从背面存储库中拉出的效果很好。但是,将其推送到它会产生有关子模块的错误,但是本地存储库中没有子模块。
> git push overleaf master
remote: error: invalid git repo
remote:
remote: hint: Your Git repository contains a reference we cannot resolve.
remote: hint: If your project contains a Git submodule,
remote: hint: please remove it and try again.
任何帮助将不胜感激!
编辑以回复评论 *
git remote -v
的输出显示了位于下页的存储库,我在此处将ID替换为“ xxxxx”:
JanaJarecki https://github.com/JanaJarecki/my-correct-repo.git (fetch)
JanaJarecki https://github.com/JanaJarecki/my-correct-repo.git (push)
overleaf https://git.overleaf.com/xxxxx (fetch)
overleaf https://git.overleaf.com/xxxxx (push)
my-collaborator https://github.com/my-collaborator/correct-repo.git (fetch)
my-collaborator https://github.com/my-collaborator/correct-repo.git (push)