2010年9月20日 星期一

Mac OSX 下專用的 Git ignore file

設定家目錄下的.gitignore為通用設定檔
git config --global core.excludesfile ~/.gitignore

參考一些Xode的暫存檔更新後,內容如下
# Mac OS X Finder and whatnot
.DS_Store
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# no useful files
log/*.log
tmp/**/*
public/cache/**/*
doc/api
doc/app
# Xcode
build/*
*.o
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
# Other source repository archive directories (protects when importing)
.hg
.svn
CVS
# automatic backup files
*~.nib
*.swp
*~
*(Autosaved).rtfd/
Backup[ ]of[ ]*.pages/
Backup[ ]of[ ]*.key/
Backup[ ]of[ ]*.numbers/
# Sparkle distribution Private Key (Don't check me in!)
dsa_priv.pem
## android use
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
# Proguard folder generated by Eclipse
proguard/
# Intellij project files
*.iml
*.ipr
*.iws
.idea/
# ctags
TAGS
# Cocoapods
Pods/
podfile.lock
view raw Darwin hosted with ❤ by GitHub
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
view raw Visual Studio hosted with ❤ by GitHub
#ignore thumbnails created by windows
Thumbs.db
view raw Windows hosted with ❤ by GitHub

若有興趣的可以用git抓取原始碼

PS.原來gist也能用git回來或是push回去阿,實在是太有趣了 XD

沒有留言: