When getting this pop up while trying to push/pull your git content in Sublime “You should not push a detached head”, you should make sure you have “Xcode” on your computer.
This program allows your information to pass.