GIT installation and use For Windows

http://blog.csdn.net/feiniao1221/article/details/7516421

GIT installation

http://aideehorn.iteye.com/blog/284797

 

GIT SSH key settings

http://blog.csdn.net/hustpzb/article/details/8230454

 

Set git user name and email:

$ git config --global user.name "xuhaiyan"
$ git config --global user.email "[email protected]"

 

2. The process of generating SSH keys:
1. Check whether you already have an ssh key: cd ~/.ssh
If there is no key, there will be no such folder. If there is, backup and delete it
. 2. Survival key:

$ ssh-keygen -t rsa -C "[email protected]"
press 3 carriage returns, the password is empty.

 

Your identification has been saved in /home/tekkub/.ssh/id_rsa.
Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
The key fingerprint is:
………………

 

Finally got two files: id_rsa and id_rsa.pub


3. Add key to ssh: ssh-add filename
requires password before entering.
4. Add the ssh key on github, which is the public key in "id_rsa.pub".

Open https://github.com/  , log in, and add ssh.

 

使用:download code from github

git

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326814519&siteId=291194637