commiting from detaching HEAD state