Enter the user name and password for each git clone and push operation. Although it is safe, it is a little troublesome to enter the machine every time. How do I remember the user name and password?
I read various methods on the Internet, which is too complicated. Many environments may be different and it has never been feasible. Finally, find an effective method, which is very simple. Record it!
After you have configured git, there is one in the C: \ Documents ents and Settings \ Administrator \ directory. the gitconfig file contains the name and email you previously configured. You only need to add a line below.
[Plain]View plaincopy
- [Credential]
- Helper = store
The next time you enter the user name and password, git will remember to form a file in the C: \ Documents ents and Settings \ Administrator \ directory. the git-credentials file contains your username and password.
[Plain]View plaincopy
- Https: // username: [email protected]
In this way, when you connect to the git. oschina code library, you no longer need to enter the user name and password!
Turn: http://blog.csdn.net/liukang325/article/details/24105913
Tortoisegit does not need to enter the user name and password each time to connect to oschina.