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?