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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.