Some git commands can give exit code 1
while it was actually successful, or for instance if I try to git commit -m <something>
but there's nothing to commit, or trying git pull origin master
while there're no changes and my local branch is up to date with the remote.
How then to check that the git commands didn't actually fail and that it just says "nothing there to do"