[Cocoa]为已有的 XCode 工程创建 Git 仓库

为已有的 XCode 工程创建 Git 仓库
罗朝辉( http://blog.youkuaiyun.com/kesalin/)
CC许可,转载请注明出处

XCode 会自动为新建的工程创建本地 Git 仓库,但是如何为已有的工程创建 Git 仓库呢?Google 到下面这篇文章,贴在下面了。
原文链接:点击这里
其中 ignore文件下载为:https://github.com/github/gitignore/blob/master/Objective-C.gitignore

Creating a git repository for an existing Xcode project

Ash:

New Xcode projects will let you keep local git source control. Using an existing project with this local source control is … difficult. I tried for a while before almost giving up. Documentation around the “Add Working Copy” is almost non-existent. This is how you do it.

Alternatively:

$cd path/to/project
$git init
$git add .
$git commit -m "Initial commit of project"

Keep in mind with either approach, it's a good idea to include a good.gitignorefile. Here's agood onefor Xcode projects.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值