Created
October 8, 2023 10:08
-
-
Save adrianblade/9f2ae15361918e9789a02b2617abec9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git shortlog -sn --no-merges | awk '{printf "INSERT INTO repositories_contributors(id, repository_key, contributor_name, number_of_commits) VALUES ('"'repository'"', '"'project'"', '"'%s'"', '%s');\n", $2 " " $3, $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment