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

Sourcetree changed working copy lost local data

I'm very new to this, and had committed local changes to my bitbucket, but it never showed up. I then tried to merge the HEAD so it would all be in the one branch. But I think I changed the working copy, and it deleted all my local data and then no record of it shows in the history.

I greatly appreciate any help.


Thank you

2 answers

1 accepted

0 votes
Answer accepted

Apologies for the silly question back in April.

I have since learnt more about how Git works and feel a bit embarrassed.


What had happened was I had committed the data without pushing it.


Can this please be deleted?

minnsey Atlassian Team Aug 14, 2018

:) Sorry it can't but don't stress we all have those days with Git and this might help someone else in the future.

1 vote
minnsey Atlassian Team Apr 17, 2018


Did you push your commits to Bitbucket after committing?

You can try git reflog from the command line to show what has happened to your commit

Hi Michael, thanks for the reply!

After running that command, it turns out this is what I did.

******* HEAD@{6}: checkout: moving from master to HEAD

******* HEAD@{7}: checkout: moving from ******************* to master

******* HEAD@{8}: commit: UI Changes


I've made some changes so new commits automatically push to avoid this error in the future.


What would the above mean?




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,131 views 5 13
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