For each commit hash use git show
I need to log all my git posts for my teacher. He gave me the following example:
git log --pretty="%H" --author=you | while read commit_hash
do git show $commit_hash
done > log.txt
I know the "you" part is supposed to be my name, and the git command works fine, but after it comes back, it is more iconic and doesn't do anything. I also understand that it has to use every commit hash for a command git show
. Any suggestions? I am also using OSX.
+3
source to share