How to host your project on GitHub (using GitHub Desktop)

Source: Internet
Author: User

In the previous article, detailed explained the use of X-code and terminal with the method of uploading code, this method is more traditional, there will be pits in the middle, English seems to be laborious, but GitHub officially provides a Mac version of the client, such as:

Attached download link: Portal

Once the download is complete, you can install it directly.

This is the shape of the fried day, but this is used more than the method described in the previous article, the use of more, words not much to say, directly on the steps:

First, open after viewing the main page

1 refers to the creation of a new warehouse, created with the desktop client, there is no need to create a new warehouse on the GitHub website

2 Cloning a repository is to create a repository on GitHub that leverages client local affinity, such as:

The blue box inside add the address can, personally think, directly using the desktop version of the client to create a warehouse, easy to malicious, such as:

3 refers to adding a local repository, that is, if you create a project locally, want to upload to GitHub, this time, click on this option, select the project can, and then the following steps are directly uploaded, the following will say, such as:

Second, the beginning of the operation of the upload, very simple

Click the Create New Repository option to go to the following page:

In fact, and the previous option is the same, here again popularized:

Where name needs to be filled in is the name of the warehouse.

   The local path is the address of the native route and can be customized

  Initialize this repository with a readme indicates whether a Readme file is generated when the repository is initialized. When we look at other people's framework, we will have a description of the framework version information, how to use it, and so on, which is the Readme file, which is selected on the page.

  Git Ignore, a drop-down box will appear after clicking to ask if you want to set the repository's ignore file. This depends on your own needs, usually if your warehouse and code project is related, it is best to choose the appropriate ignore files (such as OC Project can choose Object-c,swift Project can choose Swift), as for why please refer to the basic use of git.

To tell the truth, I tried to choose and not to choose, there is no impact, so I did not pay much attention! Know why friends, but also look at the liberal enlighten!

  License , click will appear a drop-down box, you need to choose an open source protocol, open source agreement there are many kinds of more than the MIT or Apache, different open source agreement on the use of the project has different provisions.

to tell the truth, I also tried to choose and do not choose, and there is no impact, so I also did not care, forgive me superficial understanding bar, English looking very laborious, add a sentence: know why friends, but also look at the liberal enlighten!

Continue, OK, click the Create Repository button to go to the next page:

A current warehouse is the one you created in the previous step

B Current Branch

C to the warehouse, which is the last to be clicked, will be said later

D is a description of the upload code, can be filled out

Third, click on the location of the previous step A, enter the following page:

Here is an operation, right-click on the drop-down box, as follows:

Open in Terminal : Opening terminal

Show in Finder : Open Local Path

Remove: remove this local repository

Four, enter the address of the local path:

is just the default, do not understand the above steps, enter the following page:

Five, then the item to be uploaded to this directory, will go to the following page, such as:

Fill in the description here, then click on Commit to master and see the following page:

Six, upload the source code, click the location in the red box:

Go to the following page:

The red box point off, otherwise it is encrypted, we use public here, and then click Publish Repository, into the following page, the state has changed, if there are other files, follow the above steps to add a description upload can, upload time is required to fill the summary , otherwise commit to master does not let the click,

This is, then click on the current Repository , the following interface appears:

At this point, seeing the position in the red box has become GitHub, which indicates that it has been successfully uploaded to GitHub,

Finally, we go to the GitHub homepage to view, for example:

Gorgeous Li's finished!

Add a bit: Modify the file and submit the modified file to GitHub, in fact, as above steps, repeat the operation can be, but here still write the steps:

1, find the local path, open, such as:

2, add a background color in the project, as follows:

3, this is to open GitHub Desktop, will directly see the following page:

4. Add a Summary, and then click Commit to Master, such as:

Click to enter the following page:

5. Click on push origin to see the following page:

6. Go to the GitHub homepage to view the following:

Gorgeous Li's finished!

In general, the use of GitHub Desktop, more convenient than the use of the terminal method, the operation is very convenient, but also very simple, how simple, after all, the code is the main page, these are only some of the ancillary things!

If there is anything wrong with the place, I hope everyone is not hesitate to enlighten!

This also has no reference to things, the information on the Internet is the old version, the interface difference is relatively large, there is no practical reference value!

Reference: http://blog.csdn.net/deft_mkjing/article/details/51557304

On

How to host your project on GitHub (using GitHub Desktop)

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.