
ショコラ
gitignore に指定されているファイルを add するには?
「git add -f {ファイル名}」 でキメマス。

もっさん先輩
git add -f {ファイル名}
例
git add -f dist
シチュエーション
ワードプレスで、全てのソースを Git に登録してバックアップをとった(つもり)が、git clone を行ったところ distフォルダーが抜けていた。
gitignore に指定されているファイルを add するには?
「git add -f {ファイル名}」 でキメマス。
git add -f {ファイル名}
git add -f dist
ワードプレスで、全てのソースを Git に登録してバックアップをとった(つもり)が、git clone を行ったところ distフォルダーが抜けていた。