It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cloning repo redirects to another one Edited

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.

2 answers

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?

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?

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.

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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,962 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you