
- Git bash windows asking for password every time install#
- Git bash windows asking for password every time update#
- Git bash windows asking for password every time professional#
Only after that, SourceTree will finally stay quiet again.

You might have to edit your repository settings to edit and save it's remotes.īeware, that SourceTree is going to prompt you to login one time for every repository (not account) it knows about (not just open tabs), when it feels like checking for changes for the first time after you completed the above steps and you have to login every time providing your password.
Git bash windows asking for password every time professional#
You might want to use that with git for windows if, say, you have a different github account: 1 for your personal work and another for your professional work. This should be the last prompts you will see. The inconvenience is that when the ssh-agent start, its going to prompt you to enter the password for every keys even if you dont necessarily use them.
Git bash windows asking for password every time update#
Kris's solution also works if you only want to update Git Credential Manager for Windows specifically, though does require config changes.
Git bash windows asking for password every time install#
Until Atlassian update their embedded version, you could install Git for Windows 2.14.0 and within SourceTree, click "Use System Git" in Options. The latest Git Credential Manager for Windows is included in the latest Git for Windows. The latest version (1.12.0) released a couple days ago fixed the remaining issues I had with Bitbucket authentication. The majority of issues in Git Credential Manager for Windows have been fixed in recent versions. After updating SourceTree, go to Tools > Options > Git and click "Update Embedded Git" to get the latest version (at least 2.14.1). I've not seen the issue occur for non-Bitbucket accounts.ĮDIT (): The embedded Git has now been updated, alongside the release of Sourcetree 2.1.11.0. Currently, logging in with your username is still accepted but seems to cause several issues ranging from this repeated login prompt issue to the "too many login attempts" error when pushing.

Why doesn't push (or pull) use that same method to authenticate?ĮDIT (20 June 2018): Recent changes to Bitbucket authentication has also meant that you must use your email (NOT your username) when logging in. It seems weird, since I have OAuth for both accounts, and can browse my repos (some of which are private) with no problem. Using an HTTPS remote URL has some advantages compared with using SSH. The push was successful, and I saw also that a new entry in "Saved passwords" was created for that repo. Why is Git always asking for my password If Git prompts you for a username and password every time you try to interact with GitHub, youre probably using the HTTPS clone URL for your repository. That forced the GCM dialog, to which I supplied credentials for the repo that I was pushing to. I removed the Saved passwords that were stored and re-tried a push.

Tools > Options > Authentication seemed also to be helpful for me. I agree the GUI is borked since we have no idea for which account or which operation the credintial manager is asking this information.

I have had Source Tree 2.x for a long time and don't recall this headache. The problem seemed to start for me when I added a new bitbucket account (academic) and wanted to use two accounts. I thought I had got the spontaneous dialogs to go away, but they do sometimes re-appear. Now paste it to the key field of GitHub or Bitbucket page you opened at step 7.ħ) Now press Add SSH key (GitHub) or Add key (Bitbucket) and from now on you can clone using SSH address of your git repo and push with SSH encryption.The commands above seemed to help, but not right away. This will copy the public key to your clipboard. Then you do not need to enter any password in future for pushing changes.ħ) For GitHub: Go to and click New SSH Key. For Bitbucket go to Bitbucket settings and select SSH Keys under Security and click Add key.Ħ) Press Win + X and select Command Prompt to run command prompt (cmd) and run – clip <. You can also leave it empty for no password. You have to provide the password every time you want to push any changes to git servers. Keep the default filename (just press enter when it ask for filename to keep the default one) and provide a password for the key file. Run the command bellow by replaying your-username-here with your computer username via CMD or RUN ( Win + R) setx HOME C:\users\your-username-hereĤ) check if everything is OK so far by running git -version in CMD. If it prints back the version of git then everything is good so far.ĥ) Open Git Bash from Start>All apps>Git>Git Bash and run ssh-keygen 2) Install Git and when asked choose Use Git from the Windows Command Prompt option –ģ) Set HOME variable to your user directory like C:\users\your-username-here .
