Questions tagged [git-log]
The git-log tag has no summary.
9 questions
-1 votes
2 answers
413 views
how to filter git commits only if certain directories were changed
I need to filter commits based on directory changes, for example I need to get a list of commits only if the commit made a change in a certain directory. I have tried the path filter glob option ...
1 vote
1 answer
5k views
how to print out only commit author and commit date by using git log?
I want to list all commit by using git log, in which each line contain [commit author]: commit date For example: [name]: 7 February 2021
2 votes
1 answer
5k views
Format datetime as UTC with strftime (for use in git)
I can format dates and time pretty flexibly with strftime, but from what I can see, this only will give times in my local timezone; I can add the timezone offset (e.g. '%Y %m %d-%H:%M:%S%z' for a ...
2 votes
3 answers
614 views
Echoing from a variable in a specific part of a string
I am trying to make a command for having a nice-looking git log. Say I have the following: git log --color --pretty=format:"%C(cyan)<%an>" --abbrev-commit What I would like to do is to make a ...
2 votes
3 answers
3k views
How to find which author and committer has done more commits to a project using git log?
I have been browsing Git Basics - Viewing the Commit History as well as Git Tools - Searching and while most of the ways seem straight-forward I have been trying to figure out if there was a way to ...