2

I am trying to set up a Git/Bitbucket account so I can source control one of my projects. I created a Bitbucket account and created myself a repository as well.

I am on Step 1 part 8 of Clone Your Git Repo and Add Source Files in the Atlassian documentation.

I keep getting this error:

 fatal: could not read Password for 'https://newuserme@bitbucket.org': No such file or directory

So I ran the command

git config --global core.askpass

And then tried again, however, it is still not prompting me to enter the password. What am I missing here? (Note: I am using the Clone link from my actual repository and not the one shown here. :))

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
user2573690
  • 4,423
  • 9
  • 38
  • 59

2 Answers2

3

Instead of git config --global core.askpass, you can try:

git config --global core.askpass /usr/libexec/git-core/git-gui--askpass

(as commented in GitExtensions issue 85)

Note that you can also use a credential helper to cache your password: see for instance "How to configure GIT on Windows 7 to push project to Google Code".

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
0

On windows this worked for me:

git config --global credential.helper wincred

iwein
  • 25,224
  • 10
  • 68
  • 109
Ivandro Jao
  • 2,322
  • 4
  • 23
  • 22