加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

github pages with hugo

发布时间:2020-12-14 16:36:42 所属栏目:百科 来源:网络整理
导读:创建一个Github Pages,并使用Hugo需要注意以下内容: 安装Hugo 将其集成到Github Pages 也有一些值得参考的文章: 换了台电脑。clone下来项目死活发布不成功(子模块的修改无法提交更新上去。),搞了一个多小时,瞎搞来搞去。好是好了。没搞明白。。。不过

创建一个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:

  1. Delete the relevant lines from the .gitmodules file. e.g. delete these:

    `[submodule "public"]
    path = public
    url =
    branch = master`

  2. Delete the relevant section from .git/config. e.g. delete these:

    `[submodule "path_to_submodule"]

       url = https://github.com/whidy/whidy.github.io.git`
    
  3. rm -rf .git/modules/public

Then,you can finally:

git submodule add -b master https://github.com/whidy/whidy.github.io.git public

疑问

是不是仓库不应该ignore子模块呢?请看这里:

除此之外,这个文章也许也有帮助:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读