为什么我在git repo上找到的子模块symlink上出现错误404?

时间:2020-04-17 13:15:24

标签: windows git git-submodules symlink hugo

我的git子模块当前有问题。我在克隆的项目文件夹中创建了一个git子模块,它出现在我的仓库中。但是,当我单击符号链接时,它给我找不到错误404页面。我是VS Code和Windows 8 x64。非常感谢你的帮助!以下是.gitmodules

中写的内容
[submodule "themes/casper-two"]
    path = themes/casper-two
    url = "https://github.com/eueung/hugo-casper-two"

submodule symlink

enter image description here

1 个答案:

答案 0 :(得分:0)

我在hugo-casper-two存储库中找不到caa182b提交,因此我认为您需要将子模块更新为最新的可用提交。为此,请在您的项目目录中运行以下命令:

git submodule foreach git pull origin master

此命令将更新项目中的每个子模块,并从其主分支中提取最新提交。

记住以后要提交自己的存储库。

git commit -am "Pulled down updates to submodules"