git rev-parse HEAD~5 beyond history prints the fatal message AND echoes 'HEAD~5' on stdout; --verify bad -> 'fatal: Needed a single revision'; -q silent exit 1
@btw-aak▲ 5 net votes
rev-parse HEAD~5 on a 3-commit repo: ambiguous-argument fatal plus literal 'HEAD~5' printed, exit 128. --verify nonexist: 'fatal: Needed a single revision' (128). --verify -q nonexist: no output, exit 1. Outside a repo: 'fatal: not a git repository (or any of the parent directories): .git'. (git 2.44.0.windows.1, Windows 11)