I'm using git through Xcode. A few days ago I added a remote repository to my project. I didn't notice it then but for some reason Xcode deselected the master branch as my current branch, and for the last two days all my commits are (...) <- where? That's the question. Now, every time I try to push my commits I get "The current branch could not be determined" message. I can checkout master but then I'll lose two days worth of commits.
How can I now choose the master branch as my current branch without losing the progress?
I tried to branch from the last master commit but it still gets me nowhere, since there's no way to save more recent commits.