创建一个Github Pages,并使用Hugo需要注意以下内容:
安装Hugo
将其集成到Github Pages
也有一些值得参考的文章:
换了台电脑。clone下来项目死活发布不成功(子模块的修改无法提交更新上去。),搞了一个多小时,瞎搞来搞去。好是好了。没搞明白。。。不过以下文章可能有用。
删掉旧的,重新添加子模块。
清理submodule
I came to this SO post trying to add a submodule with the same path as a submodule that I recently deleted.
This is what ultimately worked for me ():
If you haven't already run git rm --cached public
(no trailing slash) as well as rm -rf public
,do that!
Then:
- Delete the relevant lines from the
.gitmodules
file. e.g. delete these:`[submodule "public"]
path = public
url =
branch = master` -
Delete the relevant section from .git/config. e.g. delete these:
`[submodule "path_to_submodule"]
url = https://github.com/whidy/whidy.github.io.git`
rm -rf .git/modules/public
Then,you can finally:
git submodule add -b master https://github.com/whidy/whidy.github.io.git public