Home> Development Tools> git> body text

How does git implement user login settings?

anonymity
Release: 2019-05-05 11:18:22
Original
13907 people have browsed it

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 "你的邮箱" 回车
Copy after login

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!

Related labels:
git
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!