Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smartgit always asking for password credentials

Tags:

git

php

bitbucket

I am using bitbucket for my project and using SmartGit 17.0.4 for pull and pull to my repository. Every time it asks to enter the username and password. I searched it, but didnt get any solution. Anyone knows?

Here is the screenshot of popup . http://prntscr.com/fd91v7

like image 316
Maha Dev Avatar asked May 29 '17 04:05

Maha Dev


People also ask

How do I fix Git always asking for credentials?

You can avoid being prompted for your password by configuring Git to cache your credentials for you. Once you've configured credential caching, Git automatically uses your cached personal access token when you pull or push a repository using HTTPS.

Why is Git asking for username and password every time?

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. It's easier to set up than SSH, and usually works through strict firewalls and proxies.

How do I authenticate SmartGit?

To use SmartGit's OAuth authentication with your GitHub Enterprise instance, SmartGit has to be configured as Developer Application in your GitHub Enterprise instance. This can be done by every GitHub Enterprise user, from the Personal Settings, OAuth Applications, Developer Applications.

How do I disable the credential cache in Git?

You could also disable the use of the Git credential cache using git config --global --unset credential. helper. Then reset this, and you would continue to have the cached credentials available for other repositories (if any). You may also need to do git config --system --unset credential.


1 Answers

SmartGit should use the Windows Credential Manager to cache your password.
See "Using the Git credentials manager".
Check the output of:

git config credential.helper

But, there is an issue reporting that password gets deleted from the credential manager: issue 58.

I have a situation with SmartGit and Git Credential Manager for Windows:

After entering the password, I can confirm that it is added to the Credential Manager.
However, even after using the setx GCM_PRESERVE_CREDS true (and restarting SmartGit and the Credential Manager service), the credentials still get removed after some period of time (short, around 15 minutes), and the manager pops up again.

This bug is still in progress.

like image 178
VonC Avatar answered Oct 05 '22 22:10

VonC