我正在从Mercurial迁移到Git。
git中是否存在与以下Mercurial命令相同的等效命令:
hg tags --debug
谢谢
hg tags
列出标签,所以我想hg tags --debug
是hg tags --verbose
。在git
中,它大致等同于
git tag --list -n1
请参见https://git-scm.com/docs/git-tag#Documentation/git-tag.txt--nltnumgt
Upd。我对--debug
的猜测是错误的。让我们修复它:
git tag -l --format=' %(refname) -> %(objectname)'