Add git checkout-parent script. This is good for checking out the direct parent or
any other ancestor of the current branch (HEAD).