在Cocoa项目中使用版本控制的最佳实践 [英] Best practices for using version-controlling on Cocoa projects

查看:110
本文介绍了在Cocoa项目中使用版本控制的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用Git作为我正在开发的一些Cocoa项目的版本控制系统,并想知道是否有在Cocoa项目上使用版本控制系统的最佳实践。

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.

有一个明显的build目录,我从版本控制中排除它,因为它不重要,可以改变很多,当调试一些代码,然后有那些.pbxuser和.perspectivev3改变我打开项目的时间Xcode但我真的不知道他们是否足够重要足以签入。

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?

提前感谢

推荐答案

这里是我的Mercurial .hgignore nofollow noreferrer> Peter Hosey的。

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

这篇关于在Cocoa项目中使用版本控制的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆