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

[转]为已有的XCode工程创建Git仓库
原文链接:点击这里

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 .gitignore file. Here's a good one for Xcode projects.

 

posted @   飘飘白云  阅读(775)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2010-09-28 Android 上实现水波特效二--优化
本博客遵循 Creative Commons License “署名-非商业用途-保持一致”创作共用协议。 与我联系
点击右上角即可分享
微信分享提示