02a26d7e1e7fc91b710c172ea88fe26047620a80
bfg/Aborting : [dir name] is not a valid Git repository...md
| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | +## 解決法 |
|
| 2 | + |
|
| 3 | +`.git`ディレクトリが実際にディレクトリかを確認する。 |
|
| 4 | + |
|
| 5 | +``` |
|
| 6 | +$ cat .git |
|
| 7 | +``` |
|
| 8 | + |
|
| 9 | +git submoduleを使っていると、`.git`がただのファイルであり、実態が存在するディレクトリが記載されている。 |
|
| 10 | +`.git`に |
|
| 11 | +``` |
|
| 12 | +gitdir: [hoge] |
|
| 13 | +``` |
|
| 14 | +な記載があるのなら、bfgは`[hoge]`を直接指定する。 |
|
| 15 | + |
|
| 16 | +``` |
|
| 17 | +$ bfg --delete-files fuga [hoge] |
|
| 18 | +``` |
|
| ... | ... | \ No newline at end of file |