I would like to take the contents of each file pushed to a git repo, and store the file contents in MySQL. A quick google and read says I need to hook into git using a post-commit hook. However, what does the actual post-commit hook look like to loop through each file in the commit?
Is there a pre-built library for doing this? Prefer PHP, Node.js, or pure Bash.
Thanks.