列出全部分支

git ls-remote --heads your.git | awk 'sub(/refs\/heads\//,""){print $2}'

其中awk中sub替换 refs/heads/ 为空,然后显示第二列。

 

列出全部tag

git ls-remote --tags your.git | awk 'sub(/refs\/tags\//,""){print $2}'

 

列出全部

git ls-remote your.git

 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-05-17
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2021-11-04
  • 2022-01-27
  • 2021-07-02
  • 2022-03-07
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案