To read the last commit message for a specific file,
git log -1 --pretty=format:'%B' <branch> -- path_to_file
original information source: https://stackoverflow.com/questions/54915006/git-show-only-the-message-for-the-latest-commit-of-a-specific-file-in-a-branch