First, right-click on the computer desktop and select "Git Bash Here"
to open the git command window;\n\nFirst, right-click on the computer desktop and
select "Git Bash Here"
to open the git command window;\nConfigure the user in the git command window ,
enter the command: git config --global user.name "mink".
Among them, "blkj" is the user name you want to fill in;\n. Then configure the email and enter the command: git config --global user.email "[email protected]". "Just fill in your own email address\nAt this time, a .gitconfig configuration file will be generated in the C:\Users\Administrator directory. This file cannot be deleted;;\nThen check the contents of the .gitconfig configuration file;\nContinue Enter the command in the git command window: ssh-keygen -t rsa -C "[email protected]" to generate the SSH public key and private key;\nEnter the C:\Users\Administrator.ssh directory to view the generated SSH key;\nEnter the command in the git command window: cat ~/.ssh/id_rsa.pub, you can view the public key and private key.\nConfigure the public key to link with the private key
git configures username mailbox and generates ssh key
Guess you like
Origin blog.csdn.net/weixin_44188105/article/details/132983887
Recommended
Ranking