Configuration and use of the Arsenal GitHub

Source: Internet
Author: User
Tags github ssh key

1, register a github account, this everyone knows AH

2. Configuration

(1 Check: Enter terminal, enter in user directory:

Ls-al ~/.ssh

get on behalf of local not configured over GitHub too.

(2 Create a directory, enter:

  mkdir. SSH

(3 into the current. SSH directory

pwd

CD. SSH

Pwd

(4 Generate SSH keys, enter it in the. SSH directory:

  Ssh-keygen-t rsa-c "[Email protected]"

Press ENTER after the input is complete until a good graphics position appears (proving that both the public and private keys are generated):

(5 after generating public and private keys enter to see if the build succeeded

  Ls-la Id_rsa (private key) id_rsa.pub (public key)

(6 Gets the public key, and the input is automatically copied to our clipboard:

  Pbcopy < ~/.ssh/id_rsa.pub

(7 click on setting-on your own github ssh key->add ssh key to add the public key you just acquired.)

(8 Verify the Public key, verify that the gray dots on the successful web page will turn green, this step needs to be entered in the terminal (input back to GitHub's Sshkey interface to see the dots turn green):

   ssh-t [email protected]

  

(9 Copy to public key after opening GitHub home page

Click Warehouse (repositories)

Then click New to GitHub to create the warehouse interface

(10 download an empty warehouse to a local via the address provided by GitHub (HTTPS clone URL)

1?? Create a new project to the local warehouse folder first

2?? In terminal input: git clone https://github.com/daomul/AxibaWeibo.git can be downloaded to local

3?? Drag project engineering into the new local warehouse folder (1?? In the new)

(11 navigate to the local warehouse file and enter (view files with no push):

    git status

(12 Add File, enter:

    git Add.

git status

(13 Submit file, enter:

    Git commit-m "Initialize project".

    

(14 use Xcode to submit the code to GitHub (note: When a username password is required, the nickname displayed on GitHub is entered instead of the login)

(15 Viewing results

Configuration and use of the Arsenal GitHub

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.