Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Serhat Teker
Serhat Teker

Posted on • Originally published attech.serhatteker.com on

     

Show Today's Git Commits

We use--since flag in order to show the commit logs of today:

$git log--since="yesterday"# or$git log--since="midnight"
Enter fullscreen modeExit fullscreen mode

This flag is very humanized, e.g:

$git log--since="2 weeks ago"$git log--since="4am"
Enter fullscreen modeExit fullscreen mode

For more info:git-scm

Default Log

My defaultgit log command is:

$git log--oneline--decorate--graph--all
Enter fullscreen modeExit fullscreen mode

So I can use it with--since flag:

$git log--oneline--decorate--graph--all--since="yesterday"
Enter fullscreen modeExit fullscreen mode

Alias

An alias would be:

aliasgloga='git log --oneline --decorate --graph --all'aliasglogay='git log --oneline --decorate --graph --all --since="yesterday"'
Enter fullscreen modeExit fullscreen mode

All done!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Uomo Universale | Software Engineer | Entrepreneur | builds systems | py:go:js |
  • Location
    127.0.0.1
  • Work
    Software Engineer
  • Joined

More fromSerhat Teker

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp