将现有项目置于Xcode

将现有项目置于Xcode

本文介绍了将现有项目置于Xcode 4.3.2的源代码控制之下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法将我现有的项目放在源代码控制之下,然后我看着,但该解决方案不起作用要么是因为我的项目目前不受源代码控制。如何在源代码控制下获得我现有的项目?



编辑



我希望它成为一个git存储库,而不是颠覆。

解决方案

您可以在终端中使用:

cd / to / app / folder

  git init 
git add。
git commit -am'您第一次提交的描述符'

然后应该选取在Xcode中,您可能需要关闭并重新打开

希望它有帮助


I was looking for a way to put my existing project under source control, and I looked at this question, but it looks like that solution only worked with Xcode 4.0 because I can't find a way to do what is advised. I also looked at this question, but that solution doesn't work either because my project isn't currently under source control. How can I get my existing project under source control?

Edit

I want it to be a git repository, not subversion.

解决方案

you can do it in terminal using:

cd /to/app/folder

git init
git add .
git commit -am 'a descriptor of your first commit'

This should then be picked up in Xcode, you may need to close and re-open

Hope it helps

这篇关于将现有项目置于Xcode 4.3.2的源代码控制之下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:25