fatal: could not read Username for 'https://github.com': No such file or directory

noobie-php picture noobie-php · Mar 3, 2014 · Viewed 186.6k times · Source

I have the following problem when I try to pull code using git Bash on Windows:

fatal: could not read Username for 'https://github.com': No such file or directory

I already tried to implement the accepted solution provided here:

...but the problem persists. After adding/removing origin I still get the same error.

Answer

Tony Zampogna picture Tony Zampogna · Apr 4, 2014

Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys

OR

git remote add origin https://{username}:{password}@github.com/{username}/project.git