I am using git bash. When attempting to push I get the message
remote: You may not have access to this repository or it no longer exists in this workspace.
The repository has an access token, I can see "it in Repository Settings > Access tokens". Only one token is listed.
1. I have tried
git remote set-url origin https://{my bitbucket name}:{access token}@bitbucket.org/{project}/{repository}.git
That doesn't change anything, I am still denied access.
2. I have also tried
git config user.email {token in repository settings}@bots.bitbucket.org
This also doesn't change anything.
The second token was in the details displayed when I clicked on the token in the list of access tokens.
I wasn't sure about the scopes for the token, so I selected all of them. The scopes for the token are
pipeline
pipeline:variable
pipeline:write
pullrequest
pullrequest:write
repository
repository:admin
repository:delete
repository:write
runner
runner:write
webhook