Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 to wrong file deleted existing data.

I created a git repository on github which I then proceeded to clone to a local repository with Sourcetree. The problem being I accidentally cloned it to the wrong directory and it then proceeded to overwrite everything in the file without a warning. Is there a way to regain this data? The data does not seem to exist on the computer anymore.

1 answer

0 votes
Ana Retamal Atlassian Team Dec 13, 2018

Hi Khaine, welcome to the Community!

Where did you clone it to? Was it another repository? If so, you should be able to revert the operation. You can learn more about it in our tutorial and in the Git official documentation.

Hope that helps!


Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,259 views 5 14
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