0

I'm currently having an issue with my git submodule. I've created a git submodule in my cloned project folder and it appears right on my repo. But when I click on the symlink, it gives me Error 404 page not found. I am VS Code and Windows 8 x64. Thanks a lot for your help! Below is what is written in the .gitmodules

[submodule "themes/casper-two"]
    path = themes/casper-two
    url = "https://github.com/eueung/hugo-casper-two"

submodule symlink

enter image description here

1 Answers1

0

I cannot find the caa182b commit in the hugo-casper-two repository, so I believe you need to update the submodule to the latest commit available. To do this, run the following command from your project directory:

git submodule foreach git pull origin master

This command will update every submodule in your project and pull the latest commit from their master branch.

Remember to commit your own repository afterwards.

git commit -am "Pulled down updates to submodules"
runar
  • 2,667
  • 2
  • 15
  • 23
  • Hello, thanks for your help! So I ran the first command: git submodule foreach git pull origin master and it returns : Entering 'themes/casper-two' From https://github.com/eueung/hugo-casper-two * branch master -> FETCH_HEAD Already up to date. – Gaël Latouche Apr 17 '20 at 21:01
  • If it still does not work, you may want to try the suggestions [in this question](https://stackoverflow.com/questions/56371564/a-git-submodule-is-stuck-at-wrong-commit-submodule-update-doesnt-work). If this does not work either, I would [completely remove the submodule](https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule) and add it back. – runar Apr 17 '20 at 21:12