私のリポジトリでは、すべてのバイナリファイル、生成されたすべてのファイルなどを除外したいと思います。しかし、最終的なapkファイルを含めたいと思います。私はアンドロイド用の標準のgitignore(ここを参照)を選び、この質問に従って変更しました。しかし、今ではbin/resフォルダーを無視していません。もちろん、bin / resを手動で除外するために別の行を追加することもできますが、それは標準ではないようです。どうすればよいですか?
1 に答える
1
If the apk
file is only present in the bin/ directory, you could try:
bin/
!*.apk
This would be similar to the setting described in "How do gitignore exclusion rules actually work?".
What you tried is similar to "How do negated patterns work in .gitignore?", and this might work:
bin/*
!bin/*.apk
bin/res/
于 2012-12-27T14:00:00.040 に答える