Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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.

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
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...

3,101 views 4 5
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