• Register
0 votes

Problem :

I have the below problem when I just try to pull code, using my GIT Bash on windows

Even after adding/removing the origin I am still facing the same error as below.

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


6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced the exact same problem in the recent past. The problem had occurred when I tried to clone using the HTTPS URL and after that I tried to push the changes using my Git Bash on the Windows using below command:

git clone https://github.com/{username}/{repo}.git

But, when I tried using the SSH URL as below to clone it, Above problem didn't occur:

git clone git@github.com:{username}/{repo}.git



I had the same problem in the recent past, as I did not get any help at that time, so I have decided to post my solution that worked for me.

Few Points to remember :

1.       The SSH key must be generated

2.       The SSH key must be added to github.

3.       After that I had created the new repository on GitHub for my project and followed the steps.

As the command line tool I used was the GitShell for Windows also I use Terminal.app on my Mac. The GitShell is the official GitHub tool and can be downloaded from the following link : https://windows.github.com/

Hope this solution helps someone who has the same problem.

9 7 4
38,600 points

Related questions

0 votes
1 answer 21 views
Problem : how can i deal with this situation and fix it ? Fatal: could not read username for 'https://github.com': no such device or address.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2 views
Problem: When I encountered this problem, I attempted to find a solution on the internet but was unable to find any useful details. If you read the above query and understand what the solution is, please cooperate with me- Thanks.
asked Apr 1 rakib1 51.3k points
0 votes
1 answer 5 views
Problem: I am facing this iisue can any one help please? file not found or no read permission zip
asked Mar 19 PkGuy 13.1k points
0 votes
1 answer 34 views
Problem: why this happened with me : Fatal: could not read username for 'https://github.com': terminal prompts disabled.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 3.4K views
Problem : I created my private repo examplessite/myprivaterepo using my Github UI from my browser. Then I went to my go directory which is on my desktop and tried to clone it: $ cd $GOPATH $ go get github.com/examplessite/myprivaterepo So far so good. I created ... .com/examplessite/myprivaterepo: exit status 128 Why is the laptop ignoring my own repo and how can I make it to accept its luck?
asked Dec 17, 2019 alecxe 7.5k points
0 votes
1 answer 9 views
Problem: There is no tracking information for the current branch
asked Mar 19 ummesalma 22.9k points
0 votes
1 answer 7 views
Problem: I have a project hosted on GitHub. I fail when trying to push my modifications on the master. I always get the following error message Password for 'https://*Emails are not allowed*': remote: Invalid username or password. fatal: Authentication failed for 'https://*Emails are not allowed*/eurydyce/MDANSE.git/
asked Mar 30 ummesalma 22.9k points
0 votes
1 answer 2 views
Problem: I just pulled files successfully (?) using commands, and now I'm trying to push... Commit Logs below: (I have several reverts because I have failed to commit several times due to LF, CRLF, or untracked Files errors) And in AS I got "Push to origin/master was rejected"
asked Mar 31 ummesalma 22.9k points
0 votes
1 answer 25 views
Problem : Error “push master to origin/master was rejected by remote”
asked Feb 23 Shovo210 13.2k points