Skip to main content

Module symbolic_ref

Module symbolic_ref 

Source
Expand description

mkit symbolic-ref [--short] <name> [<ref>] โ€” read or write a symbolic ref (currently only HEAD), like git symbolic-ref.

  • Read: symbolic-ref HEAD prints 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 under refs/heads/; the branch need not exist yet (matching git).

Functionsยง

run