How to fix error: post-checkout hook exited with error code in Git | DevErrors