Grant Zvolsky
Grant Zvolsky

Reputation: 571

What is the git CLI equivalent of `echo 'ref: refs/heads/master' > .git/HEAD`

In other words, is there a safe way to just move HEAD without doing anything else?

Upvotes: 1

Views: 157

Answers (1)

phd
phd

Reputation: 94642

git symbolic-ref HEAD refs/heads/master

See https://git-scm.com/docs/git-symbolic-ref

Upvotes: 2

Related Questions