Create or move a ref directly.
Section: Refs and Symbolic Refs
Update ref atomically
bash
bash
git update-ref refs/heads/tmp <commit_sha>Learn 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 Refs and Symbolic Refs