When using git on Windows to push to the GitHub server, you need to enter the user name/email address and password every time, which is very troublesome. Recently, when I use hexo to write a blog, I need to configure and preview the blog frequently.Hexo deployYou need to enter your username and password for verification.
Although GitHub providesSSHTo connect the local server to the server. However, after the website instructions are configured, the problem still cannot be solved. I tried it several times and finally solved it using the following method.
- First, add the environment variable.
- In the user folder
For example, c: \ Users \ zhangsanCreate_ Netrc.
- Edit the file:
123 |
Machine GitHub. comlogin zhangsanpassword 123456 |
Save.
From: http://zipperary.com/2013/05/26/ssh-errors-with-github/
In addition, Git-related configuration files can also be found in the user directory and directly modified.