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
detached head is fine as long as you want to make No change.
If you want revert a commit, you can use git revert on specific branch
If you want to work off detached head and do commits; create a new branch (and later merge it);