IOS uses GitHub managed code

Source: Internet
Author: User

1. Register a GitHub account on the website. Https://github.com/github

2. Download the Mac version of the GitHub client. Website: https://desktop.github.com

3. The installation will then occur. After the installation is successful, this will appear


Icon

4. Open the GitHub client and log on to the client.

5. Note:

A. In the process of creating the project, the name of the project must not have "" space appears, or add not to go in. Because the name of the file in the creation process, automatically changed, I just ate this loss.

B. The name of the file that contains the outermost part of the project can be changed by itself (that is, the file path), but the name of the internal project is not changed arbitrarily and the name is kept in line with the name of the project. Otherwise, adding code will fail.


Precautions

6.


An example under normal circumstances

7.


Style after successful uploading of code

8.


Example of repeated uploads (created once)

9. If you are prompted with a repository already exists here, you may be uploading github locally, and the corresponding. git file will be generated on-premises, the file is a hidden file, and you will need to delete all. Git directories and execute the following command at the terminal:

command to display mac hidden files: Defaults write Com.apple.finder appleshowallfiles YES

to hide the Mac hidden files command: Defaults write Com.apple.finder appleshowallfiles NO

Restart the Finder (command+option+esc, select the Finder restart), find the appropriate project to delete the. git files from all folders, and recreate the Create Repository (created project).

10. First add changes to Master Branch, edit the description and click Commit to Master:

Note: "Commit to master" means commit to the Master branch, which saves the code to the local repository and then synchronizes the local warehouse to the warehouse managed by the GitHub server via push.


Add FirstLocal master, then upload

11. After adding a local point, click on Commit to Master, the following screen will appear, and each time you add a per cent will become a history.


the content of each change

12.


Upload Code

12. During the upload process:


During the upload process

13. After the upload is successful:


After the upload is successful

14.


15.


Show on GitHub

Revert This commit: Undo changes


Implement Undo Change Content

Implementation of the Undo content display:


Implement Undo

Wen/Still Love you So Forever (Jane book author)
Original link: http://www.jianshu.com/p/dd99a827927f
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author". 

IOS uses GitHub managed code

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.