github fix detached head