-
Notifications
You must be signed in to change notification settings - Fork 409
Git Codebook
Edwin Kofler edited this page Jun 2, 2023
·
2 revisions
Show contributions for current file version (e.g. author-email and ISO datetime of commit):
git blame "$1" | cut -d' ' -f 1 | sort -u | while read sha1; do
git show -s --format="%aE %cI" $sha1
done
Show all unique contributors for file:
git log --reverse -1 --format='%aE' [--follow] <File> | sort -u
Show original commiter for page/file:
git log -n1 --follow --format='%aE' <File>
This community-maintained documentation for Bats is about core/master
,
see sidebar interwiki or the about page for more info.