Point HEAD to a named branch ref.
Section: Selected Server and Admin Commands
Set symbolic HEAD ref
bash
bash
git symbolic-ref HEAD refs/heads/mainLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Selected Server and Admin Commands