How to build a GitHub environment in a Linux environment

Source: Internet
Author: User
Tags git clone

First install GitHub

# yum Install git

When you are done

https://help.github.com/articles/generating-ssh-keys/#platform-linux Official setup tutorial under this URL

Let me explain my configuration.

Ssh-keygen-t rsa-b 4096-c "[email protected]"

Running this code [email protected] is your own GitHub mailbox ... Don't ask me how GitHub registered ... Baidu a bit.

Tips:

Generating public/private RSA key pair.

appearance:

enter file in which to save the key (/users/you/.ssh/id_rsa): [press enter"    

Press ENTER

Enter passphrase (empty for no passphrase):[type a passphrase] # Enter same passphrase again: [type passphrase again]    

Enter the password two times to get Sshkey later

Tips:

Your identification has been saved in/users/You/.ssh/id_rsa.# Your Public Key has been saved in/users/You/.ssh/id_rsa.pub.# the key fingerprint is: # 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]     

run:

eval" $ (ssh-agent-s) "# Agent pid 59566    

Green is a hint of success

Run again

ssh-add ~/.ssh/id_rsa

To the next step is not the same as the official said, because spicy a xclip small brother I did not install (also did not install well, lack of a X11 or something ...) I'll tell you later when I'm ready.

Run:

cat ~/.ssh/id_rsa.pub  

Will get a ssh-rsa opening  [email protected]   END key

and get this key.

Login to GitHub's website to add, this tutorial in the official website, in the setting SSH keys Add, will post the will.

After adding success

Run:

ssh-t [email protected]  

detect links on

See the following two codes appear, and you're super-divine.

The authenticity of host ' github.com (207.97.227.239) ' can ' t be established.# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. # is sure you want to continue connecting (yes/no)?   
# Hi username! You've successfully authenticated, but GitHub does not # provide shell access.    

about how to pull the project down

CD to the directory where the files are stored

Run

git clone https://github.com/git username/file to be cloned

If there is a folder in your directory and there is a index.php file in it, OK.

How to build a GitHub environment in a Linux environment

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.