[git] How can I reconcile detached HEAD with master/origin?