2

When using BFG Repo-Cleaner is there any way around not having everyone do a fresh clone? With a large team and multiple branches it is difficult to organize this. I am willing to run bfg multiple times should something be reintroduced as long as I don't have to have everyone re-clone the repo.

I'm thinking remove the files (ie private keys) from history, add them to .gitignore file, git push, and have the team rebase their branch.

Hoping Roberto Tyley sees this and can offer some advice.

Cheers!

David Vasandani
  • 1,840
  • 8
  • 30
  • 53
  • What is BFG? Do you store private keys in a repo? – Nick Volynkin May 20 '15 at 21:03
  • 1
    The problem with overwriting large swathes of history across an entire repository is that, if someone *doesn't* update to the most recent version, you run the very real risk of the changes you removed making their way back into the repo. What size of a team are we talking here? – Makoto May 21 '15 at 17:39
  • @Nick Volynkin My mistake. I've added a link for more clarity. We did store private keys in a repo but we have since removed them and want to purge them from the repos history. – David Vasandani May 21 '15 at 17:40
  • @Makoto its a team of about 50. – David Vasandani May 21 '15 at 17:41
  • 1
    Okay, so that's *quite* a few developers. Is it that you want to avoid the scenario of making everyone reclone, or is it monetarily infeasible to ask them to reclone? – Makoto May 21 '15 at 17:46
  • I'd like to avoid the scenario on making everyone reclone in the case that they have local changes they haven't committed yet. The goal is to make the process as transparent as possible since I am willing to run BFG multiple times. – David Vasandani May 21 '15 at 17:49
  • 1
    Private keys, once compromised, are not private anymore. =) – Nick Volynkin May 21 '15 at 17:51
  • 2
    If you change history on the repository, all other collaborators will have to pull or re-clone, and they will not be happy with it. That's a bitter truth of editing a shared repo. – Nick Volynkin May 21 '15 at 17:53

0 Answers0