How to build a git code library for existing projects in xcode

Source: Internet
Author: User

CodeManagement has been using smartgit, and it feels quite useful. Create a project, and then add the existing xcode project to the smartgit code library through clone. Yesterday, I wanted to add my project to smartgit. I couldn't find where to add it. I couldn't remember how I used to add the project to the code library. Later, I tried the clone function and found that the old project can be added to the code library in clone mode, but the new project cannot. I suddenly remembered that the new version of xcode added an option when creating the project:

The previous project creation was not checked. Will it be the reason?

I immediately created a new project, checked this option, and used the clone of smartgit to create a code library. This time, it is enough. It seems that xcode has no default git library.

The solution is to create a code library for the original xcode project, Google times, and find a method:

Log on to the project directory on the console and run the following command:

Git initgit Add. Git commit-M "Initial commit"

In this way, the existing code library is added to git.

For more information, refer to the following:Article:

Http://ashfurrow.com/2011/03/how-to-create-git-repos-for-existing-xcode-projects/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.