Not a command, but a useful reference. gitrevisions lists the various ways you can refer to a commit.
git log -L :${FUNCTION}:${FILE}
References:
git show ${COMMIT}:${FILE}
References:
git show
<rev>:<path>
git checkout ${COMMIT} -- ${FILE}
References:
git checkout
pathspec
git log --name-only
git log --name-status
References:
git log --decorate --oneline --graph
References:
git merge-base ${COMMIT1} ${COMMIT2}
References:
git branch -r --contains ${COMMIT}
References:
git tag -a -f ${TAG} ${TAG}^{}
References:
git rev-parse ${COMMIT}
References:
git rebase --onto ${NEW_BASE_COMMIT} ${OLD_BASE_COMMIT} ${BRANCH_NAME}
References:
git reset --soft HEAD~1
git reset HEAD ${FILE}
git commit -c ORIG_HEAD
References:
git commit --allow-empty
References: