Example of the push of a local git project to a git server Xcode6

Source: Internet
Author: User
Tags sourcetree

Xcode also upgraded to the 6 version, Swift also out of 2.0, I would like to do a small project in the new environment try not to because git operation of the code mistakenly deleted, the morning study under the Xcode6 git under the operation of the special record;

The tragic record, last night I'm going to push the local git code to the Coding.net server when I finish a small module of the project. First config the server address, but also refresh the name of the branch, I would like to push, at this time prompted first pull, I was also pull, at this time the hint is not a valid remote address. Finally I chose check out, this is miserable, the implementation of a successful, server content will be the local directory coverage, not the server files are all deleted, even the Trash box, tragedy, sleep.

This morning specially Baidu for a long time, there is a way to say is check out a directory, and then create a project, project in this directory, note that the project directory belongs to git directory subdirectory, this is not what I want. Or oneself start toss, finally still want to use Sourcetree program pull under again in Xcode push on OK.

The process is as follows:

Create a project on Xcode6, and note that you create a git project at this time;

The Config menu in the source Control menu loves configuring the remote git server address;

If you pull an error under the source Control menu, such as a screenshot

At this point I open the download good Sourcetree program, configure the project that has just been established, here pull when the normal execution, as shown:

Then close Xcode, then reopen, push code to the server, OK succeeded.

Questions:

Ask what in Sourcetree can be pull, but in Xcode6 will the error? Notice that I have restarted xcode and pull. Have you ever met a situation like this?

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.