Let git remember user name password (HTTPS) under Windows

Source: Internet
Author: User
Tags version control system

Recently began to work with the boss to maintain the company's framework code, so did not hesitate to choose git this well-known version control system (the company uses TFS, but the extranet access is always disconnected).

The managed platform selected is Oschina because it can create a new private project.

HTTPS is used when pulling and pushing code, but it is hateful to enter the username password every time.

Programmers are born to solve problems.

The workaround is to open the personal folder, typically the C:\Documents and Settings\ user name, which has a. gitconfig file, which is opened using Notepad. If you've configured your name and email before, you'll see it in this area.

We can add the following configuration

[Credential]helper=store

The next time we re-enter the username, Git remembers the username and password, so we don't need to enter it again.

At this point in the above directory, you can find another file generated. git-credentials, the user name password is recorded inside.

Let git remember user name password (HTTPS) under Windows

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.