关于git ls-remote 查看tag,显示「^{}」的问题。
黄舟
黄舟 2017-05-02 09:26:55
0
1
828

使用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^{}

最后的^{}是什么意思?能不能不显示呢?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
Peter_Zhu

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 ^{}

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!