Please, I have a big problem in my project: this is the scenario. I have an xcode project under GIT. Today I realized that the last commit broke some tests, so i checked out
If you dont want to keep changes of detached HEAD and want to go to latest branch commit use below command directly.
git checkout -
Note:I will delete all your changes in the detached HEAD.