How to turn Detached Head into master in git? -
in case of detached head, how remove commits ahead of detached head , turn detached head master?
use git reset
command make current branch point commit.
specifically, commit id want point to, git checkout master
, git reset <id>
.
Comments
Post a Comment