Whenever I do a git pull on the server, I get the message;
Your branch is ahead of origin/master by 2 commits.
The two should be in sync. I don't know how I got here. Everything I have in origin/master I want on the server. I don't care if I lose the changes for the last couple of commits, it was nothing vital. How do I get these back in sync so I can push and pull like normal again?
Edit: I ran git checkout origin/master
and got my code on the server back to a previous state, but now I'm in detached HEAD state. How do I get out of that?