return git exit code