Andrey Deineko
Andrey Deineko

Reputation: 52357

Clear bitbucket cache

Is there any way to clear bitbucket's repo history cache?

Background: I used

git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' \
--prune-empty --tag-name-filter cat -- --all

to delete the FILE-WITH-SENSITIVE-DATA and clean the commits history. This worked smoothly. The file is no longer in commit.

But now, knowing the commit's hash I still can view the original commit in browser (which has the file's contents). Assumption is that is stored in bitbucket server's cache.

Any way I can make sure that even this cache is cleaned?

Upvotes: 1

Views: 8666

Answers (1)

Andrey Deineko
Andrey Deineko

Reputation: 52357

Contacting Bitbucket support asking them to run

git gc

resolved the issue.

Upvotes: 1

Related Questions