Using Git Gui Windows - How to Save User Credentials - Username and Password

I know this question was asked before, and I looked at this link:

https://www.kernel.org/pub/software/scm/git/docs/git-credential-store.html

I'm really really not used to using the Git Gui application for Windows and the Git hub in general.

I “downloaded” the existing repository by entering the repository URL from the Git Hub website in the format https://github.com/projectname.git

To click on it, I will copy the folder files to the local Git directory, and then delete f5 in Git Gui and fix / click on the origin.

However, every time I want to click something, he asks me about my username and password. The manual says to create a text file named .git-credentials with your username and password in the specified format:

https: // user: pass@example.com

Question:

How do I associate a .git-credentials file with my Git Gui application? ... Do I use DOS? Or some git shell from somewhere? ...

Any help would be greatly appreciated ...

+6
source share
1 answer

One solution is to use the GitHub app for Windows : it will save your credentials for you, as indicated in this GitHub Help Page .

But he also adds:

If you do not want to use GitHub for Windows, you can download the assistant for your OS:

Windows Vista 7 and 8 (.NET 4.0 required)

Unzip the file and run the git-credential-winstore.exe . This will launch the helper and update the git configuration to use it.

Tip. Credential Assistant only works when cloning an HTTPS repository URL. If the SSH repository URL is used instead, SSH keys are used for authentication.

Therefore, you do not need to create a .git-credentials file: the git-credential-winstore.exe will guide you through it.

+6
source

Source: https://habr.com/ru/post/946425/


All Articles