Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for using version-controlling on Cocoa projects

I recently started using Git as my version control system for some Cocoa projects I'm working on and wondered if there are best practices for working with version control systems on Cocoa projects.

There is the obvious "build" directory which I exclude from versioning as it's not important and can change quite a bit when debugging some code and then there are those .pbxuser and .perspectivev3 which change ever time I open the project in Xcode but I don't really know if they are "important" enough to be checked in.

Is there a commonly used configuration for excluding unimportant files?

Thanks in advance

like image 725
Patrick Avatar asked Oct 25 '08 09:10

Patrick


People also ask

How version control should be used in a project?

You should use version control software for all code, files, and assets that multiple team members will collaborate on. It needs to do more than just manage and track files. It should help you develop and ship products faster. This is especially important for teams practicing DevOps.

What are the three types of version control?

The types of VCS are: Local Version Control System. Centralized Version Control System. Distributed Version Control System.


1 Answers

Here's my Mercurial .hgignore file, which is based on Peter Hosey's.

syntax: glob

.DS_Store

*.swp
*~.nib

build

*.pbxuser
*.perspective
*.perspectivev3
*.mode1v3

*.pyc
like image 193
Colin Barrett Avatar answered Oct 24 '22 20:10

Colin Barrett