Xcode comes with git usage records and xcode comes with git records

Source: Internet
Author: User

Xcode comes with git usage records and xcode comes with git records
I. Two Methods for creating. git files1. When creating a Project, if you select Create git repository, you can see the hidden. git file..
How to view hidden files: (1) Enter defaults write com. apple. finder AppleShowAllFiles TRUE on the terminal; (2) Enter killall Finder.
2. Download Command Line Tools in XcodeIn this way, even if you do not selectCreate git repository, or you can Create a. git file later (Xocde ---> prefrences --> Downloads download ).
The method for creating a. git file is as follows: (1) Open the terminal and enter "cd/Users/.../Project, that is, enter the directory of the Project you created (2) git init. This is the. git file. (3) git add.Do not omit "." In this line of instruction. There is a space between it and add. In this way, all contents in the current directory are added to the. git file (4) git commit-m "Initial commit", which will save the changes permanently.
Finally, restart Xcode and open Source Control. You will find that you can use all menu items that are not available.

Related Article

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.