使用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^{}
最后的^{}
是什么意思?能不能不显示呢?
天蓬老师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
You can use git show <version> to see the difference between the two
You can also use git show-ref to list logs without ^{}