I have commit number. I would like to get previous commit number(parent). I need commits from current branch.
For the full details: git log 4c7036e807fa18a3e21a5182983c7c0f05c5936e^ -1
git log 4c7036e807fa18a3e21a5182983c7c0f05c5936e^ -1
For just the hash: git log 4c7036e807fa18a3e21a5182983c7c0f05c5936e^ -1 --pretty=%H
git log 4c7036e807fa18a3e21a5182983c7c0f05c5936e^ -1 --pretty=%H