我发现这需要一个--format
论点:
--format <format>
A string that interpolates %(fieldname) from a branch ref being shown and the object it points at. The format is the same as that of git-for-each-ref(1).
当我看的时候man git-for-each-ref
我发现
When unspecified, <format> defaults to %(objectname) SPC %(objecttype) TAB %(refname).
底部有以下示例:
--format='From: %(*authorname) %(*authoremail)
Subject: %(*subject)
Date: %(*authordate)
Ref: %(*refname)
%(*body)
' 'refs/tags'
--format="ref=%(refname)"
还有一些我了解得更少的东西。