I've recently had a catastrophic hard drive failure resulting in the loss of my local git repository. I'd like to be able to restore the latested committed version from my private bitbucket.org repo, but am unable to find the right credentials.
The local repo that was destroyed had its credentials stored locally so I can't access those. Conversely, when I log in to atlassian.com and search for repos, I don't see any, so it's possible the original (old) bitbucket repo used a different email address or credentials.
I found an older backup of the repo and using `git config --list` I can see the bitbucket url and the user.email used (which is different than my *only* Atlassian account email). How can I restore access to the original repo so I can pull the latest version from it?
Thanks in advance!
OK, even more progress. This is indeed the right account, and the reason I wasn't able to clone the repo was because using the account password for https clone has been apparently deprecated. I created an app password and was able to successfully clone the repo. It still doesn't show under workspaces but I was able to clone it, which is really all I needed.
Thanks!
OK, I made some more progress. I found out I do have an account with Atlassian with yet a third email address, which I believe is the most likely to be the account I used to create this repo. I reset the password and logged in to this account (and I'm now writing from it). However, bitbucket.org still isn't showing me any workspaces or repos.
I've also tried to clone the repo using `git clone https://eitanf@bitbucket.org:/eitanf/[reponame.git]`. It prompts for a password, and I've entered the new password I have just reset, but get an Invalid Credentials error.
@Patrik S please help me figure out how to find the missing repo and regain access to it.
Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eitan Frachtenberg ,
and welcome to the Community!
I'm sorry to hear about your hard drive issue. Unfortunately, the content cannot be accessed without access to the email address linked to the original Bitbucket account. Atlassian uses the email tied to the account to verify ownership of content.
If you can regain access to the old email, you can use it to log in or reset the account password. Without it, we recommend checking if you have any other backups or reaching out to your email provider for help recovering the old address.
Let me know if you have other questions.
Thank you, @Eitan Frachtenberg !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response, Patrick.
I'm a bit stuck here. As far as I know, the only bitbucket account I ever set up is with this email address that I've logged in with. I checked the `git config` and it shows a different email address, to which I do have access. But when I try to send a password reset link for that other address, nothing arrives from Atlassian. I suspect this just means that no account was set up for that address?
I'm in a real pickle here since I really need that backup. How can I find out if I have any other email addresses/accounts associated with bitbucket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.