Skip to content

Instantly share code, notes, and snippets.

@adrianblade
Created October 8, 2023 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianblade/9f2ae15361918e9789a02b2617abec9b to your computer and use it in GitHub Desktop.
Save adrianblade/9f2ae15361918e9789a02b2617abec9b to your computer and use it in GitHub Desktop.
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