Hi Herman,
Git does not have a command for adding users/groups to a repository. Git does not handle permissions, that is where Bitbucket comes in.
To add the users/groups to the repository in Bitbucket you can use the REST API, take a look at /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/permissions/groups and /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/permissions/users These ones are for Bitbucket Server, you can find the REST API for Bitbucket Cloud here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.