■CakePHPのプロジェクト
色々付け足して以下のようになった。
.gitignore
# Windows Thumbs.db # MAC .DS_Store # Eclipse /.cache .project /.settings .buildpath # Netbeans nbproject/* # CakePHP tmp files /app/tmp/* !/app/tmp/ /app/tmp/cache/* !/app/tmp/cache/ !/app/tmp/cache/empty /app/tmp/cache/models/* !/app/tmp/cache/models/ !/app/tmp/cache/models/empty /app/tmp/cache/persistent/* !/app/tmp/cache/persistent/ !/app/tmp/cache/persistent/empty /app/tmp/cache/views/* !/app/tmp/cache/views/ !/app/tmp/cache/views/empty /app/tmp/logs/* !/app/tmp/logs/ !/app/tmp/logs/empty /app/tmp/sessions/* !/app/tmp/sessions/ !/app/tmp/sessions/empty /app/tmp/tests/* !/app/tmp/tests/ !/app/tmp/tests/empty
■XcodeでiPhoneアプリ開発
.gitignore
build/* *.pbxuser # MAC .DS_Store
.gitattribute
*.pbxproj -crlf -diff -merge
-crlf -diffはバイナリファイルとして扱う指定である。
This will mean…
- all files with a .foo extension will not have carriage return/line feed translations done, won’t be diffed
- merges will result in conflicts leaving the original file untouched.
マージしようとするとオリジナルファイルが外されるとのこと。
■eclipseでandroidアプリ開発
.gitignore
bin/* dist/* gen/*