.gitignore
こんな状態で
$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use “git add…” to include in what will be committed)
#
# .DS_Store
# 512icon.png
# android.tmp/
# android/
# android_release/
# icon.png
# icon.xcf
# icon72.png
# icon72.xcf
# On branch master
#
# Initial commit
#
# Untracked files:
# (use “git add
#
# .DS_Store
# 512icon.png
# android.tmp/
# android/
# android_release/
# icon.png
# icon.xcf
# icon72.png
# icon72.xcf
.gitignore ファイルを作成して以下のように記載すると
.DS_Store
*.tmp
*.png
!icon.png
android_release
*.tmp
*.png
!icon.png
android_release
*.pngは無視するけど、!icon.pngでicon.pngだけ無視しない。
こうなる。
$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use “git add…” to include in what will be committed)
#
# .gitignore
# android/
# icon.png
# icon.xcf
# icon72.xcf
# On branch master
#
# Initial commit
#
# Untracked files:
# (use “git add
#
# .gitignore
# android/
# icon.png
# icon.xcf
# icon72.xcf