Tortoisegit method of automatically remembering username password

Source: Internet
Author: User


There are 2 more useful git clients under windows:

1. Msysgit + tortoisegit (turtle git)

2. GitHub for Windows

GitHub's Windows version has been used for some time, but it's still not used to it. So at present still favor with the msysgit+ turtle git combination. Tortoisegit The total number of submissions will prompt you to enter the username password, very troublesome. The solution is as follows:

Method One:

Set-> git edit Local. Git/config add


[Credential]
Helper = Store

Method Two:

1. Add a home environment variable in Windows with a value of%userprofile%

2. Open%home% in Start > Run to create a new file named "_netrc"

3. Open the _netrc file with Notepad, enter git server name, username, password, and save:


Machine github.com #git服务器名称
Login User #git帐号
Password pwd #git密码

Build _NETRC on Windows


Copy con _netrc #创建_netrc文件
#依次输入以下3行:
Machine github.com #git服务器名称
Login Username #git帐号
Password Password #git密码

Enter Ctrl+z after the last line and the file will automatically save and exit

Do not have to repeat the username password when submitting on Git again

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.