• Register
0 votes
4.1k views

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

 

7.5k 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

 

OR

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.

38.6k points

Related questions

0 votes
1 answer 172 views
172 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 8 views
8 views
Problem: I am facing this iisue can any one help please? file not found or no read permission zip
asked Mar 19 PkGuy 25.9k points
0 votes
1 answer 11 views
11 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.5k points
0 votes
1 answer 15 views
15 views
Problem : Could not read username for 'https //github.com'
asked Jun 30 Siam55 110k points
0 votes
1 answer 156 views
156 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 4.4k views
4.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 10 views
10 views
Problem: Git pull fatal: refusing to merge unrelated histories
asked Jun 26 Chi Omega 168k points
0 votes
1 answer 10 views
10 views
Problem: I'm hoping for some assistance : Git pull there is no tracking information for the current branch
asked Jun 20 asha 121k points
0 votes
1 answer 81 views
81 views
Problem: There is no tracking information for the current branch
asked Mar 19 ummesalma 29.1k points
0 votes
1 answer 53 views
53 views
Problem: I have started working on Golang project. While building with make, I am getting following error: fatal: could not read Username for 'https://github.com': terminal prompts disabled To handle this, I have done following after going through similar post go ... :GolangProjects/Project1.git Even after this config, why it keeps on using https instead of SSH, not getting any clue. Please help.
asked May 1 muktaa 34.6k points