High speed learning Mac on managed code to GitHub (specific explanation)

Source: Internet
Author: User

Before the beginning of the time has been on GitHub to download a variety of code, and then get a code upload do not know how to do nothing. Just have free time to study the next GitHub managed code, here's how to learn about the high-speed GitHub upload your code (Getting Started tutorial). The great God floated over ha).

First, what you need to do

The first thing you need to do is:

1. Create your GitHub account: Click here to register, like this


Then fill in your account password what will be able to.

2. Download Gitclient: Click here

Two. Terminal configuration

1. Open the terminal. Input

cd ~/.ssh

This is to check for your ssh existence, assuming that there are existing ssh backups, or the new ssh build to another folder (assuming that the first configuration is generally nonexistent), does not exist. You will see for example the following:

Next you will need to generate SSH with the default parameters, terminal input

ssh-keygen-t-C [email protected].com

Here [email protected] is the e-mail address of your brochure github . For example, my ch[email protected] terminal should enter

ssh-keygen-t-C [email protected]163.com

Then always enter. Until then.

Suppose you want to change the ssh build folder, enter the path you want to generate in the bold position. Choose the default. will be generated in the ~/.ssh next

2. Open your GitHub and follow the steps below

Click on the left side SSH keys and join

Above the
Title: Fill in the email number of your booklet. This is [email protected]
key: Fill in the contents of your generated id_rsa.pub file copy to this

id_rsa.pubIf you can't find it, you'll just be in the position

copyWhen you get there, you can

Select text edit to open it.

3. Test your account with the github connection, open the terminal. Input

ssh -T git@github.com

Assumption appears

Hi Loveway! You‘venotaccess.

It means you're connected.

Three. Upload the code to GitHub

Log on to the github . Then click + , selectNew repository

You will then jump to the following interface

Here are the required

Repository name: The name of project you built yourself
Description: A simple descriptive narrative of your uploading project
Public: The selection is visible to all people
Private: Ability to set the visibility of the person you specify
Here we generally choose to Public , according to their own needs you can choose Private
of the following
Initialize this repository with a READMEis to give your project a file that initializes a README (simple introduction to project usage). Here we do not choose, to the back of their own creation.
Then click Create repository to the next screen,

Here you don't have to do anything, press the red box inside the steps to be able to open the terminal, enter

"# CHWSwift" >> README.mdgit init...

Just refresh your github eyes and you'll be able to see.

Four. Change your githubproject

You can do this by clicking on GitHub in the lower right corner of theClone in Desktop

Save the file locally. Here I set the path to the desktop, put it on the desktop, and then I added a picture inside

I'm adding a pictureSwift_logo.png

Then look at my github client click Changes, you will find a new image, and then fill in the descriptive narrative (for example, I wrote here second commit and add picture ) submit

Then click on History it to see your history submission record. Here we will find that I have just submitted a circle behind it, which means that it has second commit not been synced to GitHub. In the top right-hand corner, click Sync . will be able to sync, this step do not forget, otherwise you can github not see your update.

Then refresh our project home page to see the updates that were submitted

Five. Finally

Some children's shoes ask me how to delete project on GitHub. In fact, this deletion is a bit different, specifically to your project page, click on the right side of theSetting

Go to the next page, to the bottom Delete this repository , click and enter your project name, which is the project name you want to delete (for example, I am here CHWSwift )

On the inside of the Readme file, the main use is markdown Grammar, interested in children's shoes can go to research, here, the code is hosted github on! Please follow my github homepage https://github.com/Loveway. Please leave a message if you have any questions.

High speed learning Mac on managed code to GitHub (specific explanation)

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.