Git's http and ssh configuration

http

Clone git bash directly into the desired item by way of http

eg:git clone http://xxxxxxxxxx/bk_linux_inspect-master.git

Will be prompted, enter the account password
if the password is wrong, it will appear

remote: HTTP Basic: Access denied

After the wrong password, open Credential Manager - Windows credentials, find the corresponding credentials, deleted, re-clone, pops box
prompts the user name and password, you can re-enter.

ssh

Enter ~ / .ssh folder, enter

ssh-keygen -t rsa -C "[email protected]"

After generating the key pair, the public key generated is added to the distal end git warehouse, and then projects the desired clone, clone to avoid adhesion

Guess you like

Origin www.cnblogs.com/miloli/p/11262514.html