`
luliangok
  • 浏览: 780899 次
文章分类
社区版块
存档分类
最新评论

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

 
阅读更多

为已有的 XCode 工程创建 Git 仓库
罗朝辉(http://blog.csdn.net/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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics