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.
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.
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.
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.
My colleague solved the problem. Steps:
C:\Program Files\TortoiseGit\bin\TortoisePlink.exe
C:\Program Files (x86)\Git\bin\ssh.exe
Alternative Path: C:\Users\...\AppData\Local\Programs\Git\usr\bin\ssh.exe
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
Right-click --> Tortoise Git --> Settings --> Git --> Remotes
. Find your remote (usually 'origin') then load the PuTTY key from step 2.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With