Original 2016-05-24 Asahi elder brother Lan
The student's assessment of Asahi is this:
Why is he so young and so much more so than we are?
Asahi Elder brother is very responsible, to the students of all kinds of problems can be enthusiastic to answer, under the leadership of Xu Brother, in the project stage learned a lot, no suggestion
Xu elder brother, very responsible, usually very care, and knowledge development surface is quite wide.
Let's take a look at what is code remote hosting: It's actually uploading our code to GitHub's servers for others to download, and of course it's also possible to use GitHub for code merging at the time of team development, so let's get to the point.
Before beginning to share, the small part to Xu elder brother interrupted an advertisement: Remember to focus on Xu Brother's Jane book blog Address Yo, below have blog link address!
(There is already a remote repository URL, please go directly to 2.0 steps to view)
(The project is pulled down from the remote repository and the code is written, no pull/push is done)
Tip: It's a good idea to back up your code before you pull it off
Git Way, step 3.0
svn method, Step 4.0
Git rollback-Step 5.0
SVN rollback Step 6.0
Step 1.0 Create a remote warehouse
Here we use https://github.com (GitHub now supports git and SVN2 types of access) (maybe the company has its own server and will give you a URL) (if you want to just use SVN, recommend a svn999.com)
1.1 We need to register
1.1 Sign in. png
more constraints, account and mailbox Ah, password, and so on, if there is a non-compliance with others, will jump to a page, will tell you which can not, after modification, display check mark, and then continue sign up (registration), and then re-enter into the https://github.com
1.2 After successful login. png
1.2 Creating a remote warehouse
Then click on the upper right corner + sign to create a new project (remote warehouse)
1.3 New Project (remote warehouse). png
1.4 New project. png
Get the URL of the remote repository
1.5 Get the warehouse URL. png
2.0 code cloning (download) to Local in Xcode
2.0 open Xcode ready to pull. png
Then enter the URL of the remote repository
2.1 Enter the URL of the remote repository. png
How to set up and remote warehouse interaction (GIT or SVN) (depending on the type of your remote repository URL, it doesn't matter if you support git and SVN, but only one way, so don't choose the wrong, of course, the account password is to correspond to which site, or server)
2.2 How to set up and interact with remote repositories (git or svn). png
If you click Next error: see if this
Set up a local warehouse location
2.3 Set the location of the local warehouse. png
2.4 Cloning (download). png
Once successful, you will automatically open the project you cloned (downloaded)
2.5 download succeeded. png
Step 3.0 How to use Xcode's own git for code submission, pull, push
Hero: Here is a bowl of soup you drink first, we first look at the principle: refer to this link: http://www.jianshu.com/p/0582e1908c22 visible, we need to do the following 3 steps:
Commit Operation:
Explanation: The Xcode workspace (the code you wrote) is submitted to the local repository first,
Pull operation:
Explanation: Then pull the replacement code from the remote repository (maybe someone just sent someone else to write it and you need to pull it down and merge it with your new one), and then after the local warehouse is merged, make sure to compile and run without errors.
Push operation:
Explanation: You are pushing your code on the local repository to the remote repository. Let other people on the team download
3.1 Commit operation
After opening the project, look here for a source Control
Let's take a look.
Then when you have modified the code, the modified files are displayed in M
Then we click on the source Control menu, select Commit (Commit, submit the changes to the Xcode workspace to the local repository)
Then click on the Commit button, the M flag does not represent the submission of changes to the local warehouse, but is not a remote warehouse Oh, others can not get your new code!! (to celebrate, a small step to success)
3.2 Pull (fetch) operation
Point to Source Control and perform a pull operation
this time, there may be a warning prompt,:(if it does not appear directly skip)
You have local changes not submitted to the local repository, do not let you to pull the replacement code
But obviously we have all made a commit, this is because, there is a real-time configuration file refresh (just did not tick that), then we only delete it!
Delete this configuration file
Enter terminal
Use the CD command to enter the folder where our project is located:
The picture is too much, the content is too detailed, the small compilation suggests reading the original.
Long press the QR code, you can enter the original link
Currently Lan has entered the subscription number, Jane book, the headline number, welcome your contributions. "major media platforms, direct search for Blue Gull can be found"
Link Address: https://mp.weixin.qq.com/s?__biz=MjM5Nzc1MzU2NA==&mid=2652636763&idx=1&sn= ece39d5116508c3061ebab28a47cd5b5&scene=1&srcid=0526da8jtnr28wez5cq7wb8t&key= F5c31ae61525f82e968e6555e81feab0de525315309fe57dfc4981aeabba1d22c2f9dd4bef93adeb11a1d5bc10948f6c&ascene=0 &uin=mta0ntq0mdu0na%3d%3d&devicetype=imac+macbookpro9%2c2+osx+osx+10.11.4+build (15E65) &version= 11020113&pass_ticket=yps9tdy7kxk0owyp37nc%2b3dbuvhlqfxbtnegeer3vz%2ftqhlotwupfyrre79fwp31
"iOS technology" Xcode+github Remote code hosting (GIT, SVN)