Background:
The first two days, the whim, to the computer C disk clean up, halfway also manually deleted some I do not understand the small files, just for their own view of the time can be comfortable; today, open git, want to pull the file, dumbfounded, did not need to enter the user name and password, but now pop out to remind me, very glaring , as if in the irony of my disorderly deletion of documents of obsessive-compulsive disorder
Then, I have a variety of Baidu solutions, some are really complex, look at the mood is not, one of the methods are relatively simple, try to solve the problem successfully, hereby record my resolution process.
Business:
1. Add System Environment variables
Right-click My Computer, select Properties, advanced system settings, and environment variables, system variables---New variable name: HOME; variable value:%USERPROFILE%
Supplemental Description:%USERPROFILE% is to get the current user path under Windows, for example: C:\Users\Witon, the last Witon is the native user name.
2. Create a git user name and password store file (Windows)
My computer is a Windows system, so I've only tried this situation.
Create a new _netrc file under%userprofile%, the C:\Users\Witon path (Linux or Mac creates a new. netrc file, so you can try it yourself)
The contents of the file are as follows:
Machine xxx.xx
Login LoginName
Password Password
The red ones are replaced by the three of their real git domain name, login name, and login password.
3. After the new file is completed, restart Git, it can be pulled normally, and no need to enter the user name and password again yo ~