查看log时同时显示对应的tag信息

53 views
Skip to first unread message

咖啡兔

unread,
Nov 19, 2011, 9:54:52 PM11/19/11
to Git中文
今天看书的时候发现使用命令:
git log --decorate

对于decorate的解释:
--decorate -- print out ref names of any commits that are shown

第二少

unread,
Nov 19, 2011, 9:59:03 PM11/19/11
to git...@googlegroups.com
学习了。很实用。收藏。  

热烈庆祝【Git中文】google group 成立!! O(∩_∩)O~
--
Best regards and wishes.

Follow me(@dearshor) on Twitter http://twitter.com/dearshor or weibo.com/dearshor

Dearshor(第二少) | Software Developer | Shanghai China

咖啡兔

unread,
Nov 19, 2011, 10:18:07 PM11/19/11
to Git中文
再分享一个神奇的命令:
git log --pretty=oneline origin/helper/master | git name-rev --tags --
stdin

输出结果:
bb4fef88fee435bfac04b8389cf193d9c04105a6 (tags/v2.3^0) tag v2.3
comments
610e78fc95bf2324dc5595fa684e08e1089f5757 (tags/v2.2^0) tag v2.2
comments

管道的典型应用!!!


On 11月20日, 上午10时59分, 第二少 <dears...@gmail.com> wrote:
> 学习了。很实用。收藏。
>
> 热烈庆祝【Git中文】google group 成立!! O(∩_∩)O~
>

Reply all
Reply to author
Forward
0 new messages