github use of summary

[email protected]: Permission denied (publickey).
Problem Description: github project has been in the group, after installing git can not clone the code from the project
cause of the problem: not configured git
problem is solved: Configure git

Local git configuration
1, git bash, run the following command to create a local account respectively
git config --global user.name "username"
git config --global user.email "[email protected]"
check whether successfully configured
git config - --list -global
2, to generate native SSH
SSH-keygen -t RSA
default path: / c / users / username /.ssh/
. 3, the unit adds the public key to the account github
native public key file: id_rsa .pub, manually copy the txt can be used to open the
Log GitHub -> Settings -> SSH and GPG keys -> New SSH Keys, fill the machine public key and confirm that
the test was successful configure
ssh -T [email protected]

Guess you like

Origin www.cnblogs.com/donemeb/p/12541387.html