Add error code when run git command