• Register
1 vote
74 views

Problem :

I am unable to clone my Git repository, and getting below error:

/c/Projects $ git clone http://stage.abc.com:10088/pqr
http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or dir

Please let me know any pointers to resolve my error.

6 5 3
7,540 points

1 Answer

0 votes

Solution :

I had faced the similar problem with  the GitHub. I can assure you that it is very easy to solve it.

1. Generate the SSH key on the computer as described in following link : Generating SSH keys.

2. Now Login to your GitHub account using following link : GitHub Login.

3. In your account, you need to add your newly generated SSH Key using following link: My account SSH keys.

4. Finally you need to try again to git clone the project.

OR

 

I also faced the similar issue in the recent past. I did the below procedure and it started working for me:

1. Generate the Keys from your GIT GUI client on the Windows. And Copy this key to your clipboard.

2. Now open up the account on the bitBucket/ git website, and try to add the key to your profile. This way, your server will know that you are the legitimate user who is trying to access from the legitimate system.

3. That is it. All push commands worked for me after following above procedure.

9 7 4
38,600 points

Related questions

0 votes
1 answer 40 views
40 views
Problem : I am unable to clone my Git repository and getting below error: ​/c/Projects $ git clone http://stage.abc.com:10088/pqr http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or directory ​ How can I fix the above error?
asked Jan 16 jwilliam 3.9k points
1 vote
1 answer 47 views
47 views
Problem : I have recently started to learn the GIT. I was working on my GIT and suddenly I started facing below error. &ldquo;Fatal: not a git repository (or any of the parent directories): .git&rdquo; As I am very new to GIT so I am unable to understand above error ... the error from past couple of days but unable to fix it. Is there anyone who can spare some time and guide me to fix above error?
asked Mar 30 morrisBson 3.2k points
0 votes
2 answers 148 views
148 views
Problem : When ever I try to push to a shared git remote I get the following error remote: error: insufficient permission for adding an object to repository database ./objects
asked Nov 16, 2019 peterlaw 6.9k points
0 votes
1 answer 1.5K views
1.5K 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
asked Dec 19, 2019 alecxe 7.5k points
0 votes
1 answer 2K views
2K 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