I am just trying to create a git hook which sends a notification about all the commits to our ms-teams channel on every "post-recieve".
The git hook itself works, but with the command git log -1 --pretty=format:'%s'
I only get the last commit-message, which is not very useful if you push multiple commits to master.
Is there a way to get the data (message, author, date of commit, commit number, usw.) of all affected commits on every push?
I have looked up a lot of questions here on Stack Overflow, but haven't found a proper solution for my problem.