Git upload files need to always enter the user name and password solution

1. Enter the system directory

cd ~

2. Go to Git Bash here and enter the following command

ssh-keygen  -t  rsa  -C  账户名

3. Then keep entering until the key's randomart image is output

4. Enter the path c/users/admin/.ssh/id_rsa (run the above command, the system will randomly generate a secret key). Open and copy the key, enter github

5.github–setting–SSH and GPG keys–New SSH key–copy the above key here and save it

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325520660&siteId=291194637