2. The client uses msysgit + tortoisegit. tortoisegit is only the shell, and msysgit is the truth.
The pull and push operations call the GIT pull and git push commands in msysgit, but the GIT command does not pass the parameters of the user name and password.
What should I do ?... Ask Google, and you need to refine your speech to Google. I am saying "Git Username Password", or Google is awesome. The last article on page 1st provides a clue-Setup
A remote git repository using HTTP with push support and digest auth, see:
Although GoogleArticleIt is for Linux, but it is not easy to think that the problem is in windows. I will not take a look at the solution in Linux. It is difficult to find the answer directly. In more cases, we are looking for clues and constantly thinking about possible solutions in the clues we discover.
Here, ". netrc" is the clue, which continues to say to Google: "Git netrc windows "...
There are 1st "stack overflow" on 5th pages:
Git
-How to Use netrc file on Windows-Stack Overflow
Google's plus 1 is not as powerful as the brand. When we see Stack Overflow, we can see Hope and the impulse to click.
Click here to see the feeling of "Baidu" (abbreviated as "search for her in the crowd:
This is the correct answer. We have already verified it. The solution is described in detail below:
1. Add a home environment variable in windows with the value % USERPROFILE %, for example:
2. Open % home % in "start" run "and create a file named" _ netrc.
3. Open the _ netrc file in notepad, enter the GIT server name, user name, and password, and save the file. Example:
Machine git.cnblogs.com
Login cnblogs_user ( Note: This is not the full name of the mailbox name. You only need )
Password cnblogs_pwd
Solve the problem, git is more powerful!
Reprinted from http://www.cnblogs.com/dudu/archive/2011/07/06/git_save_username_password.html