DEV Community

Discussion on: Is Git Great? #healthydebate

 
unsungnovelty profile image
Nikhil

Hmm. Maybe I am doing it wrong. I deploy my Hugo theme as a submodule in my Hugo website. This way my friend can use the theme as well and all they have to do is git submodule update --rebase --remote to update my theme. The main advantage being my friend can't make changes and mess it up which are possible if he clone my theme repo to his website.

Thread Thread
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

Doesn't Hugo have a theme repository where you can publish your stuff? seems more sane than messing with git submodules. Same for sharing code. Maven is better at that.

Thread Thread
 
unsungnovelty profile image
Nikhil

Doesn't Hugo have a theme repository where you can publish your stuff?

My theme is not open source. And a lot of themes tells you to add the theme as gitsubmodule anyways.