config configuration on the git and ssh

1. Change the way git clone of:

If you have one, you want to change your clone mode, the https ssh into the way

(1) you can go to the project's .git folder, find the config file 

 

(2) modify the clone address on the line

 

 More 2. github account using ssh questions:

We have to go on github public key configuration up to shh.

When we use multiple github, through ssh way to clone it, git will find only a public and private key pair, this time, we need to configure the look ssh.

(1) Open .ssh / config file, add the following configuration on the line:

 

 

 

 (2) At the same time, projects .git / config file, url the ":" the host content to replace the front:

 

 

Guess you like

Origin www.cnblogs.com/laochiji/p/12653313.html