The use of Git in iOS development

Source: Internet
Author: User

Just joined the company just in time to catch the SVN transition to git as a rookie can only accept the guidance of the boss, in this record my study journey.

First the company's it deployed a git server, our project team added the branch of iOS, our daily code is submitted in this branch,

Go to the relevant branch of the homepage after selecting HTTP on the right, copy the relevant address,

Enter the Git clone-related address from the Mac's terminal, clone the server-side code locally, and use git checkout branch name to export

You can find and open the relevant project in the local storage path, and each upload requires a CD path name to enter the folder

Use git add when you are finished working every day. Then use git commit-m "custom name" to upload to the local, and then use git pull to update the remote server code to the local again, and finally use git push to save the local code

Upload to the server, and finally use Git status to check the local version.

This is the most elementary command, the process of uploading will also encounter because of the conflict caused by the failure to upload, and can not automatically merge conflicts, then you need to manually modify the conflict, to determine whether to keep the server-side or local modifications,

Not to be continued!

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.