Post #2519627
2026-05-08 17:27 UTC
Added a new git alias to my config:
mine = "!base=$(git log --perl-regexp --author=\"^(?!$(git config user.name))\" -1 --format=%H); git diff \"$@\" \"$base\""
So often I'm working on a local branch and want to see my recent commits. This saves me looking at git log and manually copying the SHA.
Is there a better way to do it?
#programming
Replies (0)
No replies.