首頁  >  問答  >  主體

關於git ls-remote 查看tag,顯示“^{}”的問題。

使用git ls-remote -h -t git@git.com:xxx/xxx.git指令查看遠端版本庫,顯示如下:

122624b5556fca0a78f5a206f121602f0c96ce4a        refs/heads/master
12f2abe52d60c27eb36ab0ac43aa6612419e7d32        refs/tags/v2016-01-04_16-25-24
40265b9e6a65b915d5fd9d89e7a81abe5d17b4e1        refs/tags/v2016-01-04_16-25-24^{}

最後的^{}是什麼意思?能不能不顯示呢?

黄舟黄舟2697 天前830

全部回覆(1)我來回復

  • 天蓬老师

    天蓬老师2017-05-02 09:28:55

    maybe help you:
    http://stackoverflow.com/questions/15472107/when-listing-git-ls-remote-why-theres-after-the-tag-name

    你可以用git show 看二者的差別

    也可以透過git show-ref 列出不含^{}的log

    回覆
    0
  • 取消回覆