0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【GitHub Pages】No url found for submodule path 'hoge' in .gitmodules を解消する方法

Posted at

概要

GitHub Pageをビルド&デプロイする際に以下のエラーが発生した場合の解消方法を記載する。

  Error: fatal: No url found for submodule path 'hoge' in .gitmodules
  Error: The process '/usr/bin/git' failed with exit code 128

image.png

解消方法

submodule path 'hoge' in .gitmodules
hogeディレクトリ配下にある.gitディレクトリを削除して再デプロイする。

詳細

directory
├─ .git
├─ .github
├─ hoge
│  ├─ .git
│  ├─ img
│  ├─ src
│  └── ...
├─ fuga
│  ├─ img
│  ├─ src
│  └── ...
└─ ...

Git管理されたディレクトリ配下のhogeディレクトリにも.gitがある。
どうやらデプロイする際、hogeディレクトリ配下のページを参照するものの
そちらはデプロイしていないのでURLが見つけられずエラーとなってしまう。

hogeディレクトリ内の.gitを削除すればURLを探しにいかなくなるので、
デプロイが正常終了するようになる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?