将Git与现有的XCode项目一起使用 [英] Using Git with an existing XCode project

查看:77
本文介绍了将Git与现有的XCode项目一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何在我的项目工作流中使用git,并且我有一个现有的XCode项目,我想将其放入存储库。我想我已经在管理器下正确设置了存储库,但源代码管理菜单是灰色的。

显然,如果启动一个新项目很容易,但是如何导入现有项目快照和一切?



我使用XCode 4和git 1.7.4



另外,如果有任何有关git配置和最佳实践的良好演练,那都不错。我有点迟到了,所以任何能让我加速的东西都会很酷。

help.github.com 上提供一些非常好的git教程。



存储库的初始设置,打开终端窗口和CD到项目目录。一旦出现,请输入

  git init 
git add。
git commit -m初始提交

重新启动Xcode。
仓库现在应该设置好了,你可以在xcode 4中进行管理。


I am trying to figure out how to use git in my project workflow, and I have an existing XCode project that I want to put into the repository. I think I have the repository set up correctly under organizer, but the Source Control menu is grayed out.
Apparently, it's easy to do if you start a new project, but how do I import an existing project with snapshots and everything?

I'm using XCode 4 and git 1.7.4

Also, if there are any good walkthroughs on git configuration and best practices, that would be nice. I'm a little late to the game, so anything that can get me up to speed would be cool.

解决方案

GitHub has some very good git tutorials at help.github.com.

to do the initial setup of a repository, open up a terminal window, and CD to the project directory. once there, type

git init
git add .
git commit -m "Initial commit"

Restart Xcode. The repository should now be set up, and you will be able to manage it in xcode 4.

这篇关于将Git与现有的XCode项目一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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