error: The --branch or -b flag can only be provided when uploading appmaps from within a Git repository
I can't see any reason why this restriction should be in place. Sometimes there are AppMaps in an external directory that are known to be associated with a specific branch.