Check out and lost local files

There are many files that were in local. During initial development of some modules

many files were added  and lots of changes were done in a branch called cycle4

 

In the sourcetree develop branch is accidentally checked out

we lost all the new files and 6 days of change

Please help us resolve

 

1 answer

0 votes

Hi Kumanan! First of all, let me clarify that what you described does not look like a Sourcetree question, but like a Git question.

By default, Git should not overwrite local changes when you do a checkout. Did you use --force by any chance?

Did you added them before? If they were not added (which means git knows nothing about those files), then I'm afraid they're lost/
If you did git add previously, it will be possible to recover them but it will involve quite a lot of work. You can read more about it in the first answer of this post here.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

429 views 6 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you