Expand description
mkit symbolic-ref [--short] <name> [<ref>] โ read or write a symbolic
ref (currently only HEAD), like git symbolic-ref.
- Read:
symbolic-ref HEADprints the full target ref (refs/heads/main), or just the branch with--short. Errors when HEAD is detached / not symbolic, like git. - Write:
symbolic-ref HEAD refs/heads/<branch>repoints HEAD at a branch (the plumbing form โ it does not touch the worktree). The target must be underrefs/heads/; the branch need not exist yet (matching git).