1

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?

JP. Aulet
  • 4,267
  • 4
  • 23
  • 39
Andrey Deineko
  • 49,444
  • 10
  • 105
  • 134
  • Perhaps it's in *your* cache? – Amit Mar 18 '16 at 13:46
  • @Amit nice call! But, unfortunately, it's not a browser issue - checked – Andrey Deineko Mar 18 '16 at 13:49
  • I think you'll have to contact Bitbucket support and ask them to run `git gc` for you. [This answer](http://stackoverflow.com/a/27868384/354577) suggests that they'll be willing to do so. In any case, you should probably invalidate the exposed data if at all possible (e.g. change password, generate new app keys, etc.) – Chris Mar 18 '16 at 16:27
  • @Chris thanks man! Already contacted them - waiting for the action) – Andrey Deineko Mar 18 '16 at 17:43

1 Answers1

1

Contacting Bitbucket support asking them to run

git gc

resolved the issue.

Andrey Deineko
  • 49,444
  • 10
  • 105
  • 134
  • Can you please provide me the section of the contact? I am having trouble of finding the right section to ask. It always takes me to purchasing licenses.. – bapors Feb 15 '18 at 13:08