I searched on my keyboard through latest commits in sourcetree and accidentally pressed something, window popped up, then I accidentally pressed enter, so I don't know what it said. As a result, I ended up with a detached HEAD. After some googling, I found an advice recommending to use "reset current branch on this commit" on the latest commit as a fix. Did that, but HEAD is still detached and bunch of other peoples commits got cancelled and are now in uncommited changes :(.
Found out detached head was created by checking out older commit.
1) Can I fix this in sourcetree?
2) Most importantly. Did I break the repository for the whole team or is only my local copy affected?
All help is very much appreciated, thank you.