DEV Community

loading...

Hugo Submodules

Carlos
Jumping into the internet ocean!
Originally published at carloslatorre.net ・1 min read

Hello!!

This blog it's made with Hugo, and today I'm going to give you some tips for sync content and git project across different machines.

It's important know that when you pull your repo the submodules not pull with it. If you want to pull all include submodules you need to type this:

git clone --recursive url
Enter fullscreen mode Exit fullscreen mode

If you have already cloned a repository and want to load it's submodules you need to type this:

git submodule update --init
Enter fullscreen mode Exit fullscreen mode

Here I'm give you some links to explore and understading the submodules on git.

Discussion (0)

Forem Open with the Forem app