git symbolic-ref
Read, change, or delete files that store references. More information: https://git-scm.com/docs/git-symbolic-ref.
- Store a reference by a name:
git symbolic-ref refs/
- Store a reference by name, including a message with a reason for the update:
git symbolic-ref -m "" refs/ refs/heads/
- Read a reference by name:
git symbolic-ref refs/
- Delete a reference by name:
git symbolic-ref refs/
- For scripting, hide errors with
--quietand use--shortto simplify ("refs/heads/X" prints as "X"):
git symbolic-ref --short refs/
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
