How to get the parent of a specific commit in Git March 22, 2023 by Tarik git log --pretty=%P -n 1 "$commit_from"