Greetings!
One of our developers have found out that they have mistakenly deleted a branch last month where we can find the data file in the backups but do not know how to open or import it.
BitBucket stores all the commits in \Atlassian\ApplicationData\BitBucket\shared\data\repositories\x\objects\y as some 38-character hex-value files - but how can you go about getting data out of them?
Two possibilities:
Grab the entire repo from your backup and copy it to a computer (\Atlassian\ApplicationData\BitBucket\shared\data\repositories\x). Clone it locally, and jump to the deleted branch:
git clone \path\to\copy\of\x cd x git checkout branch
Yes, that should be possible.
Restore the repository from backup to some workstation. Clone it locally, set origin back to the server repo, then push the deleted branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you both so far for your suggestions, we will test them next week.
Edit: Backup branch restored successfully, thank you for your help.
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.