Hello.
I have a such a problem. I worked on project, commit some stuff (I use SourceTree + git). Then I noticed that I commit it to HEAD brunch, not to Master one. Don't have an idea what is HEAD. I decided to switch to master and merge changes to it from HEAD. And after that all my commits just disappear. Is there any way to get them back?
I was pretty sure that everything that is commited can't disappear whenever I do 
Thanks