News

New paper! in the American Naturalist

Wednesday, December 14, 2022

Git: Read last commit message for a file

 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