You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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
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?
:) Sorry it can't but don't stress we all have those days with Git and this might help someone else in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.