Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:46:33+00:00 2026-06-03T01:46:33+00:00

I have the following git log alias: lo = log –pretty=format:\%h %ad | %s%d

  • 0

I have the following git log alias:

 lo = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short -n 8

How can I display a list of all the git tags with a fancy format like the above, instead of just the tag name like the git tag call does?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:46:36+00:00Added an answer on June 3, 2026 at 1:46 am

    I don’t have a neat answer to this, but you could create a shell alias for something like this:

    for t in $(git tag -l)
    do
        printf "%-16s" $t
        echo `git show -s --pretty=format:"%h %ad | %s%d [%an]" --date=short $t^{}`
    done
    

    … which on the main git repository would produce output like:

    v1.7.9          828ea97 2012-01-27 | Git 1.7.9 (v1.7.9) [Junio C Hamano]
    v1.7.9-rc0      eac2d83 2012-01-06 | Git 1.7.9-rc0 (v1.7.9-rc0) [Junio C Hamano]
    v1.7.9-rc1      6db5c6e 2012-01-12 | Git 1.7.9-rc1 (v1.7.9-rc1) [Junio C Hamano]
    v1.7.9-rc2      bddcefc 2012-01-18 | Git 1.7.9-rc2 (v1.7.9-rc2) [Junio C Hamano]
    v1.7.9.1        90020e3 2012-02-14 | Git 1.7.9.1 (v1.7.9.1) [Junio C Hamano]
    v1.7.9.2        78f4c9f 2012-02-22 | Git 1.7.9.2 (v1.7.9.2) [Junio C Hamano]
    v1.7.9.3        69f4e08 2012-03-05 | Git 1.7.9.3 (v1.7.9.3) [Junio C Hamano]
    v1.7.9.4        a460348 2012-03-12 | Git 1.7.9.4 (v1.7.9.4) [Junio C Hamano]
    v1.7.9.5        8ced9c9 2012-03-26 | Git 1.7.9.5 (v1.7.9.5) [Junio C Hamano]
    v1.7.9.6        cb2ed32 2012-04-02 | Git 1.7.9.6 (v1.7.9.6) [Junio C Hamano]
    v1.7.9.7        d0f1ea6 2012-04-26 | Git 1.7.9.7 (v1.7.9.7) [Junio C Hamano]
    

    The non-obvious bit of that for me is the ^{} suffix on the tag name, which means to dereference any tag object to find the commit it points to, as described on the git rev-parse man page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following alias: unpushed== !GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH
How can I make git show my current node in the log graph? git
In git, I can do the following: git log foo ^bar to show changesets
Suppose I have the following git commits: aaaaaa bbbbbb cccccc (the latest) I would
In my current repo I have the following output: $ git branch -a *
I have the following directory structure: project/ .git/ ... app/ ... config/ initializers/ braintree.rb
I have followed the following instructions in setting a git repository locally in one
In my repository, I have created tags using the following commands. git tag v1.0.0
I have the following Git commits tree: R - A - B - C
Backround: Suppose I have the following Git URLs (hosted on github) http://github.com/mikl/drupal.git git://github.com/mikl/drupal.git (Git

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.