Suddenly I cannot push or fetch
I have the correct ssh keys in my developer settings,
but it sopped working, it used to work.
I am getting an error:
The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have another repository on the project that works well
G'day Ben!
Thank you for contacting Bitbucket Cloud Support.
I would suggest executing the following command to check how you have your repositories remote connections configured:
git remote -vvv
If the working repository path differs from the repository that is not working - I would suggest updating your remote URL's to include your App Password as we stopped supporting username/password authentication over HTTPS some time ago:
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
The same applies when performing a git clone:
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).
Hope this helps.
If you are still encountering issues, please let me know and I will open a support ticket on your behalf.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.