Install github # compile after yuminstallgit is complete
Install github first
# Yum install git
After completion
Https://help.github.com/articles/generating-ssh-keys/#platform-linux official settings tutorial at this URL
Let me explain my configurations.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Run this code your_email@example.com is your own github mailbox... Don't ask me how to register github... Baidu.
Tip:
Generating public/private rsa key pair.
Appears:
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 twice to obtain the sshkey.
Tip:
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 your_email@example.com
Run:
eval "$(ssh-agent -s)"# Agent pid 59566
Green indicates success.
Run Again
Ssh-add ~ /. Ssh/id_rsa
The next step is different from what the official team said, because I didn't install xclip because I didn't install X11 or anything... I will discuss with you later)
Run:
cat ~/.ssh/id_rsa.pub
Will get a key starting with ssh-rsa and ending with the your_email@example.com
Then get the key
Log on to the github website and Add it. this tutorial is available on the official website. Add it in the SSH keys of setting, and all posts will be posted.
After successful addition
Run:
ssh -T git@github.com
Check whether the link is on
When the following two codes appear, you can handle them easily.
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.# Are you sure you want to continue connecting (yes/no)?
# Hi username! You've successfully authenticated, but GitHub does not# provide shell access.
How to pull the project down
Cd to the directory you want to pull... Okay, change the word and store it in the directory.
Run
git clone https://github.com/JustLittleBoy/One.git
If an index. php file exists in One folder under your directory, it will be OK.