Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access repository

bryant_fujimoto October 29, 2025

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

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events