In other words, is there a safe way to just move HEAD without doing anything else?
HEAD
git symbolic-ref HEAD refs/heads/master
See https://git-scm.com/docs/git-symbolic-ref