Window sets TortoiseGit to connect to git without entering username and password every time

Many people work in the company. The git management account is the company and is managed by the technical director. Generally, you are added to the development team. Maybe you have to enter the user name and password for each pull and push when you encounter problems.

I have a workaround for this, as follows:

tortoisrGit download URL: https://tortoisegit.org/download/

First install tortoiseGit, and configure it in settings after installation, as shown in the following figure:




After you configure git, there is a .gitconfig file in the C:\C:\Users\Administrator\ directory, which will contain the name and email you configured earlier





It mainly depends on which disk you install git on. After opening the .gitconfig file, you only need to add two lines behind it:

[credential]

helper=store

Specifically as shown in the figure below:



The next time you enter the username and password, git will remember it, so that a .git-credentials file will be formed in the C:\C:\Users\Administrator\ directory, which contains your username and password (note that it is in plain text) storage!!!).



That's it, you don't need to enter the username and password for the next submission. (Warm reminder: the tortoisegit installation directory is determined by the individual)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326772020&siteId=291194637
Recommended