Cannot push to Bitbucket via https anymore: git returns fatal error

bitbucket, git

Solution

What I did was to change the protocol from HTTPS to GIT.

Followed the instructions to setup SSH here: https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git

(easy from the GitBash console, you don't need to install SSH or nothing, all comes with Git)

After you completed the SSH setup, just re-add the remote with the git@bitbucket.... url and you are done.

Hope this helps.

I have installed Git version 1.8.5.2-preview20131230

Problem

I recently reinstalled windows and got the latest version of git. I created a new repo on Bitbucket and ran ``` git remote add origin https://MYUSERNAME@bitbucket.org/MYUSERNAME/test.git ``` then I ran ``` git push -u origin --all ``` however this gave me the error ``` fatal: could not read Password for 'https://MYUSERNAME@bitbucket.org': No such file or directory ``` before I would just get a prompt asking me for my username and password, and the push worked fine. I've tried reverting to Git 1.7.11 but this didn't do anything.

Original source

Related problems