-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitignore
155 lines (154 loc) · 5.03 KB
/
.gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf190
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;\red109\green109\blue109;\red234\green234\blue234;\red37\green127\blue159;
\red0\green0\blue120;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\sl340
\f0\fs28 \cf2 \cb3 #####\cf0 \
\cf2 # OS X temporary files that should never be committed\cf0 \
\cf2 #\cf0 \
\cf2 # c.f. http://www.westwind.com/reference/os-x/invisibles.html\cf0 \
\
.DS_Store\
\
\cf2 # c.f. http://www.westwind.com/reference/os-x/invisibles.html\cf0 \
\
.\cf4 Trashes\cf0 \
\
\cf2 # c.f. http://www.westwind.com/reference/os-x/invisibles.html\cf0 \
\
*.swp\
\
\cf2 # *.lock - this is used and abused by many editors for many different things.\cf0 \
\cf2 # For the main ones I use (e.g. Eclipse), it should be excluded \cf0 \
\cf2 # from source-control, but YMMV\cf0 \
\
*.\cf5 lock\cf0 \
\
\cf2 #\cf0 \
\cf2 # profile - REMOVED temporarily (on double-checking, this seems incorrect; I can't find it in OS X docs?)\cf0 \
\cf2 #profile\cf0 \
\
\
\cf2 ####\cf0 \
\cf2 # Xcode temporary files that should never be committed\cf0 \
\cf2 # \cf0 \
\cf2 # NB: NIB/XIB files still exist even on Storyboard projects, so we want this...\cf0 \
\
*~.nib\
\
\
\cf2 ####\cf0 \
\cf2 # Xcode build files -\cf0 \
\cf2 #\cf0 \
\cf2 # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"\cf0 \
\
\pard\pardeftab720\sl340
\cf4 DerivedData\cf0 /\
\
\pard\pardeftab720\sl340
\cf2 # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"\cf0 \
\
build/\
\
\
\cf2 #####\cf0 \
\cf2 # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)\cf0 \
\cf2 #\cf0 \
\cf2 # This is complicated:\cf0 \
\cf2 #\cf0 \
\cf2 # SOMETIMES you need to put this file in version control.\cf0 \
\cf2 # Apple designed it poorly - if you use "custom executables", they are\cf0 \
\cf2 # saved in this file.\cf0 \
\cf2 # 99% of projects do NOT use those, so they do NOT want to version control this file.\cf0 \
\cf2 # ..but if you're in the 1%, comment out the line "*.pbxuser"\cf0 \
\
\cf2 # .pbxuser: http://lists.apple.com/archives/xcode-users/2004/Jan/msg00193.html\cf0 \
\
*.pbxuser\
\
\cf2 # .mode1v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html\cf0 \
\
*.mode1v3\
\
\cf2 # .mode2v3: http://lists.apple.com/archives/xcode-users/2007/Oct/msg00465.html\cf0 \
\
*.mode2v3\
\
\cf2 # .perspectivev3: http://stackoverflow.com/questions/5223297/xcode-projects-what-is-a-perspectivev3-file\cf0 \
\
*.perspectivev3\
\
\cf2 # NB: also, whitelist the default ones, some projects need to use these\cf0 \
!\cf5 default\cf0 .pbxuser\
!\cf5 default\cf0 .mode1v3\
!\cf5 default\cf0 .mode2v3\
!\cf5 default\cf0 .perspectivev3\
\
\
\cf2 ####\cf0 \
\cf2 # Xcode 4 - semi-personal settings\cf0 \
\cf2 #\cf0 \
\cf2 #\cf0 \
\cf2 # OPTION 1: ---------------------------------\cf0 \
\cf2 # throw away ALL personal settings (including custom schemes!\cf0 \
\cf2 # - unless they are "shared")\cf0 \
\cf2 #\cf0 \
\cf2 # NB: this is exclusive with OPTION 2 below\cf0 \
xcuserdata\
\
\cf2 # OPTION 2: ---------------------------------\cf0 \
\cf2 # get rid of ALL personal settings, but KEEP SOME OF THEM\cf0 \
\cf2 # - NB: you must manually uncomment the bits you want to keep\cf0 \
\cf2 #\cf0 \
\cf2 # NB: this *requires* git v1.8.2 or above; you may need to upgrade to latest OS X,\cf0 \
\cf2 #\'a0 or manually install git over the top of the OS X version\cf0 \
\cf2 # NB: this is exclusive with OPTION 1 above\cf0 \
\cf2 #\cf0 \
\cf2 #xcuserdata/**/*\cf0 \
\
\cf2 # (requires option 2 above): Personal Schemes\cf0 \
\cf2 #\cf0 \
\cf2 #!xcuserdata/**/xcschemes/*\cf0 \
\
\cf2 ####\cf0 \
\cf2 # XCode 4 workspaces - more detailed\cf0 \
\cf2 #\cf0 \
\cf2 # Workspaces are important! They are a core feature of Xcode - don't exclude them :)\cf0 \
\cf2 #\cf0 \
\cf2 # Workspace layout is quite spammy. For reference:\cf0 \
\cf2 #\cf0 \
\cf2 # /(root)/\cf0 \
\cf2 # /(project-name).xcodeproj/\cf0 \
\cf2 # project.pbxproj\cf0 \
\cf2 # /project.xcworkspace/\cf0 \
\cf2 # contents.xcworkspacedata\cf0 \
\cf2 # /xcuserdata/\cf0 \
\cf2 # /(your name)/xcuserdatad/\cf0 \
\cf2 # UserInterfaceState.xcuserstate\cf0 \
\cf2 # /xcsshareddata/\cf0 \
\cf2 # /xcschemes/\cf0 \
\cf2 # (shared scheme name).xcscheme\cf0 \
\cf2 # /xcuserdata/\cf0 \
\cf2 # /(your name)/xcuserdatad/\cf0 \
\cf2 # (private scheme).xcscheme\cf0 \
\cf2 # xcschememanagement.plist\cf0 \
\cf2 #\cf0 \
\cf2 #\cf0 \
\
\cf2 ####\cf0 \
\cf2 # Xcode 4 - Deprecated classes\cf0 \
\cf2 #\cf0 \
\cf2 # Allegedly, if you manually "deprecate" your classes, they get moved here.\cf0 \
\cf2 #\cf0 \
\cf2 # We're using source-control, so this is a "feature" that we do not want!\cf0 \
\
*.moved-aside\
\
\cf2 ####\cf0 \
\cf2 # UNKNOWN: recommended by others, but I can't discover what these files are\cf0 \
\cf2 #\cf0 \
\cf2 # ...none. Everything is now explained.\cf0 \
\
}