• Skip to main content
  • Skip to after header navigation
  • Skip to site footer

Free-Mail

  • Events
  • Images
    • Instagram Goodness
  • Music
  • News
  • Software

How to display commits created on a specific day with the git log command

How to display commits created on a specific day with the git log command: How to display commits created on a specific day with the git log command Agil Antony Mon, 10/24/2022 – 03:00

The git log command offers many opportunities to learn more about the commits made by contributors. One way you might consume such information is by date. To view commits in a Git repository created on a specific date or range of dates, use the git log command with the options --since or --until, or both.

More on Git
What is Git?
Git cheat sheet
Markdown cheat sheet
New Git articles

First, checkout the branch you want to inspect (for example, main):

 $   git checkout main

Next, display the commits for the current date (today):

 $   git log --oneline --since="yesterday"

Display commits for the current date by a specific author only (for example, Agil):

 $   git log --oneline --since="yesterday" --author="Agil"

You can also display results for a range of dates. Display commits between any two dates (for example, 22 April 2022 and 24 April 2022):

 $   git log --oneline --since="2022-04-22" --until="2022-04-24"

In this example, the output displays all the commits between 22 April 2022 and 24 April 2022, which excludes the commits done on 22 April 2022. If you want to include the commits done on 22 April 2022, replace 2022-04-22 with 2022-04-21.

Run the following command to display commits between any two dates by a specific author only (for example, Agil):

 
$ git log --oneline --since="2022-04-22" \
--until="2022-04-24" --author="Agil"

Reporting

Git has many advantages, and one of them is the way it enables you to gather data about your project. The git log command is an important reporting tool and yet another reason to use Git!

The git log command is an important reporting tool and yet another reason to use Git.

Poll: Upcoming open source conferences
Image by:

by Dafne Cholet. CC BY-SA 2.0.

 

Git

What to read next
Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.
Register or Login to post a comment.

: Opensource.com Agil Antony

Supporting Open Source.

Have you tried: Visiting Port Elizabeth?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Email a link to a friend (Opens in new window) Email
  • More
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
Published on 24 October 2022 by Alan Category: SoftwareTag: command, commits, Created, Display, specific.

Coronavirus: what a second wave might look like

Coronavirus: what a second wave might look like: As the new coronavirus was rapidly spreading in …

Read moreCoronavirus: what a second wave might look like

Checkers Sixty60 wins big at MTN Business App of the Year Awards

Checkers Sixty60 wins big at MTN Business App of the Year Awards: The Checkers Sixty60 app is the …

Read moreCheckers Sixty60 wins big at MTN Business App of the Year Awards

Window Art Offers Innovative Window Tinting Solutions to Enhance Office Comfort and Efficiency

Cape Town, South Africa – Window Art, a leading provider of decorative vinyl frosting and window …

Read moreWindow Art Offers Innovative Window Tinting Solutions to Enhance Office Comfort and Efficiency

About Alan

Previous Post:Cool Morro Bay Thanksgiving image
Next Post:Trending Now: Bangladesh vs Netherlands

Reach Trust

Reach Trust is a holding trust for a number of companies within the Stratlec Group.

Copyright © 2026 · Free-Mail · All Rights Reserved · Powered by Straton Electrical

Back to top