以下に示すようなディレクトリ構造があります。/ は Git リポジトリのベースであり、ルートではありません。リポジトリを開始したばかりで、まだリモート リポジトリに接続していません。
/ (In here is just a .dm file I want)
/LodumViralDeath/ (In here are some .tga files I want to keep)
こんな感じの / に .gitignore ファイルを追加しました。
*
!LodumViralDeath.dm
!LodumViralDeath/
/LodumViralDeath/ 内にはいくつかの .tga ファイルがありますが、git status を実行しても Git はそれらのいずれも取得せず、代わりにこれを表示します。
$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# LodumViralDeath.dm
# LodumViralDeath/
バイナリ .tgas があるという事実を認識させる方法がわかりません!
健全性チェックとして、ディレクトリのリストを次に示します。/ は /c/dominions3/mods/ に等しい
$ pwd
/c/dominions3/mods/LodumViralDeath
$ ls
boomer1.tga boomer2.tga cultivatedBrainMass1.tga cultivatedBrainMass2.tga lodumbanner.tga slimeDippedNecromancer1.tga slimeDippedNecromancer2.tga smokestack1.tga smokestack2.tga