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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.