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 8450807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:04:33+00:00 2026-06-10T11:04:33+00:00

I have a git command that I run to display my logs. It mostly

  • 0

I have a git command that I run to display my logs. It mostly works as designed, however I notice when I run a more simplified version with –oneline it displays the tagged entries a little nicer. In the –oneline version I get back (tag: 12.8.16.1) rather then (12.8.16.1). I would either like to modify the –oneline version to include the author or fix my current command so that it displays the tags as (tag:xxxx)

Command I would like to modify to include (tag: xxxx)

git log 12.6.22.1.. --pretty=format:"%an %C(yellow)%h %Cred%ad %Cgreen%d %Creset%s"  --date=short  testfile.xml


Smith e8995d2 2012-07-10  (12.8.16.1, origin/BUG_23213) Fix issue with bad code 
Jones 1bf9013 2012-07-03  FEATURE 1232 - added some new stuff

This is an example of the simple –oneline version. It works fine except I wanted to add the author.

git log 12.6.22.1.. --oneline --no-merges --decorate=short testfile.xml

 68b52ac PROJ 12311 - Adding field to report page
 37629d2 (tag: 12.8.16.1) Tagging for release
 0a8f43b (origin/BF_12312) Update timer to deal with milliseconds
  • 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-10T11:04:34+00:00Added an answer on June 10, 2026 at 11:04 am

    Try the pimped out git log alias. It’s got beautiful oneline / author formatting. This is the full command:

    git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have run this command with root: [root@localhost git-shell-commands]# ssh git@192.168.1.12 git@192.168.1.12's password: Last
I have a find command that I run to find files whose names contain
I have a command, for example 'git diff' that output a colorized result when
Is it possible to have git pull and git push in one git command?
I have read this thread when I got the the git: command not found
I recently switched to command-line git for my personal projects. I have used 3-way
Do all git commands have a --dry-run option, or one which would indicate what
I have Git (version 1.7.2.5) bash compeletion working on my Debian squeeze (6.0). Git
I have a git alias ( git undo ) that undoes everything in the
[Update2] So is it OK that when I run git from the CLI it

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.