Home  >  Article  >  Development Tools  >  How does git implement user login settings?

How does git implement user login settings?

anonymity
anonymityOriginal
2019-05-05 11:17:3613993browse

How does Git implement user login?

How does git implement user login settings?

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.

How does git implement user login settings?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn