Home > Article > Development Tools > How does git implement user login settings?
How does Git implement user login?
Enter in the console of Git Bash Here:
git config --global user.name "你的名称" 回车 git config --global user.email "你的邮箱" 回车
The email here is the email you used when you applied for a git account. If you don’t report an error, it is correct. Continue going down
Enter ssh-keygen -t rsa -C "your email" and press Enter, then press Enter three times in a row:
At this time, there is a line of prompts in the picture below: Your public key has been saved in /c/Users/xxx/.ssh/id_rsa.pub
Go to this path (C/Users/xxx/.ssh) and you can see two files: id_rsa and id_rsa.pub.
Copy the key and save it to your git account.
The user settings for Git have been completed at this point. You can now use Git to remotely control the version of the project.
The above is the detailed content of How does git implement user login settings?. For more information, please follow other related articles on the PHP Chinese website!