Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git clones wrong repository

Tags:

git

clone

github

We have several Git repositories stored remotely in GitHub. I am using git bash to clone a repository. Repository A clones completely fine from a URL I am taking from GitHub, but when using the URL for repository B, I still get the source of repository A. However much I try I am unable to pull down the code from repository B.

Has anyone had any similar behaviour?

like image 200
user3154431 Avatar asked Oct 22 '25 00:10

user3154431


1 Answers

Just delete the remote/origin assignment in the ~/.gitconfig file and everything will go correctly.

like image 168
xing Avatar answered Oct 25 '25 07:10

xing