Xcode og git

For at Xcode og git skal virke sammen på en smertefri måte, så må du få git til å håndtere Xcode prosjekt filer korrekt. Du gjør dette ved å konfigurere git via .gitignore og .gitattributes.

Lag disse filene i ditt repository og legg til følgende linjer:

.gitignore
# xcode noise
build/*
*.pbxuser
*.mode1v3

# old skool
.svn

# osx noise
.DS_Store
profile

.gitattributes
*.pbxproj -crlf -diff -merge

This entry was posted in Geeking and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">