Hi Atlassian community,
I'm working with one github repo currently, and I need to add another that I will be working with, but when I want to clone a new repo from remote (github), it's telling me:
"warning: redirecting to <current repo>"
So it just downloads the old repo instead...
I reinstalled git and sourcetree on my machine (windows), but problem persists.
I tried cloning from commandline, but I get the same result.
Havn't found anything on google about such an issue, so I'm quite clueless of where to even look. I'd be very grateful for any help.
I have found the solution to my problem, apparently Git somehow created a config file in C:\AppData\Git which had the url to my previous repository, I'm still not sure how this file was created but seems that sourcetree used it by default instead of its own config. So I just removed that config file and cloned another repository without problem.
Hi @Daniel G,
Why can't you create one new empty repo and then try to clone and see if still, this error persist?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yogesh Mude,
Thank you for replying, it's not something in git, it is something in my local machine because a co-employee can clone another repo without problem. The question is why it writes me that it redirects to another repo, is there some config file that can state such a thing in sourcetree or git?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel G,
Ok, see the first time when you clone the repo to your working dir/local machine then it will create .git file or we can say it will initialize with that repo.
Try to create a new directory into the local machine then cole the repo and see.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I create a new directory for the new repo, it just redirects to the old repo and downloads the contents of that repo to this directory. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.