Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sourcetree changed working copy lost local data

trunked April 17, 2018

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
trunked August 4, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2018

Hi

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

https://git-scm.com/docs/git-reflogs.

trunked April 17, 2018

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?

 

Thanks,

Adam

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events