Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tortoisegit asking password

I just started to work on Git. I use windows 7 and has installed msysgit(1.7.8) and Tortoisegit(1.7.6). The repository is created on Linux server which is accessible thru LAN. The issue I'm facing is I'm not able to clone the repository using Tortoisegit, it asks for password and I'm not sure what password it is asking. At the same time I could clone the repository using Git Gui and do all operations. Can anybody please help me on understanding why Tortoisegit is asking password when Git Gui doesn't. I tried uninstalling Git and Tortoisegit and then install again but no success.

Tortoisegit error

like image 655
pramodtech Avatar asked Jan 13 '12 06:01

pramodtech


People also ask

How do I remove authentication from TortoiseGit?

Normally the invalid credentials should be purged automatically (after one unsuccessful authentication attempt). Go to the Windows Credential Manager (press Windows and type "Credential Manager", or go to Control Panel\User Accounts and Family Safety\Credential Manager or use Start->Run rundll32.exe keymgr.

Why is Git asking for a password?

If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository. Using an HTTPS remote URL has some advantages compared with using SSH.

What is signing key ID in TortoiseGit?

The idea is: 1) You generate a keypair, 2) You export your public key and register it with your GitHub account, 3) You register it in your local Git configuration as "key id". Subsequent commits will be signed with that key.


2 Answers

My colleague solved the problem. Steps:

  1. Right click -> TortoiseGit -> Settings -> Network
  2. SSH client was pointing to C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
  3. Changed path to C:\Program Files (x86)\Git\bin\ssh.exe

Alternative Path: C:\Users\...\AppData\Local\Programs\Git\usr\bin\ssh.exe

like image 57
pramodtech Avatar answered Oct 07 '22 09:10

pramodtech


If you need to use a username/password, there is a much simpler solution than the current #2 answer:

Right-click --> Tortoise Git --> Settings --> Git --> Credential --> Choose "Wincred, all Windows users" --> Hit apply

The next time you enter the password for a repo, that password will be automatically saved.


If you're using a repository that requires SSH keys rather than username/password (which it sounds like was OP's original issue), you need to

  1. Open the SSH key in PuTTY gen (installs itself alongside Tortoise Git)
  2. In PuTTY gen, save the key as a PuTTY key.
  3. In the repository, Right-click --> Tortoise Git --> Settings --> Git --> Remotes. Find your remote (usually 'origin') then load the PuTTY key from step 2.
like image 41
BlueRaja - Danny Pflughoeft Avatar answered Oct 07 '22 10:10

BlueRaja - Danny Pflughoeft