Quickly learn managed code on Mac to GitHub (detailed)

Source: Internet
Author: User
Tags git client

At the beginning of the first time has been on GitHub to download a variety of code, and then get a bit of code upload do not know how to do nothing. Just recently have free time to study the next GitHub managed code, here's a detailed talk about how to quickly learn GitHub upload your code (Novice tutorial, big 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 and what you can.

2. Download the GIT client: click here

Two. Terminal configuration

1. Open Terminal, enter

cd ~/.ssh

This is to check ssh whether your existing, if present, the existing ssh backup, or the new ssh build to another directory (if the first configuration is generally nonexistent), does not exist, you will see the following:

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

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

Here is [email protected] your registered github email address, such as mine [email protected] , then my terminal should be input

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

And then keep the carriage return until this

If you want to modify the ssh build directory, enter the path to be generated in the bold location, and select default to generate the ~/.ssh following

2. Open your GitHub and follow the steps below

Click on the left SSH keys and then add

Above the
Title: Fill in your registered mailbox number, here 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

copyYou can go to

Select text edit to open it.

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

ssh -T git@github.com

If it appears

Hi Loveway! You‘venotaccess.

It means you're connected.

Three. Upload the code to GitHub

Sign in to github , then tap + , selectNew repository

And then jump to the bottom of the screen.

Here you need to fill in a

Repository name: The name of the project you built yourself
Description: A simple description of the project you are uploading
Public: The selection is visible to all
Private: You can set the person you specified to be visible
Here we generally choose to Public , according to their own needs you can choose Private
The following
Initialize this repository with a README: A file that is initialized to your project README (an engineering usage profile, and so on), where we do not choose to create it ourselves.
Then click Create repository to the next screen,

Here you don't need 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 see.

Four. Modify your GitHub project

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

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

I add a pictureSwift_logo.png

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

Then click on History to see your history submission record, here we will find that I just submitted a second commit circle behind, this means that has not synced to GitHub, click on the upper right corner Sync , you can sync, this step do not forget, or you in githubyou don't see your updates,

Then refresh our project homepage to see the updates that were submitted

Five. Finally

Some children's shoes asked me how to delete the project on GitHub, in fact, this deletion is a bit different, specifically to your project page, click on the right below theSetting

Go to the next page, to the bottom Delete this repository , click and enter your project name, which is the name of the project 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! Welcome github to my homepage https://github.com/Loveway, if you have any questions please leave a message!

Copyright NOTICE: This article for Bo Master original article, reproduced please indicate the source, thank you.

Quickly learn managed code on Mac to GitHub (detailed)

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.