如何在不获取对象的情况下获取远程引用列表(仅包括名称和提交ID)?
显然,WebUI不是答案。
我找到的只有远程HEAD
的名称:
$ git remote -v show origin
* remote origin
Fetch URL: https://git.git
Push URL: https://git.git
HEAD branch: main
Remote branch:
refs/remotes/origin/master stale (use 'git remote prune' to remove)
Local branch configured for 'git pull':
master merges with remote master
fetch
是一个实际的子命令。 - 0xC0000022Lgit fetch --depth 1
。 - OwnageIsMagic