Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anonymise a local git repository?

Tags:

git

anonymity

I have a local git repository that I've done quite a bit of work on, with a number of commits that I'd like to retain. Unfortunately, while the code is reasonable reusable, I included some sensitive data (database names/user/passwords) in a very early commit. I would like to change the entire history to anonymise the sensitive data, while retaining the general history structure. Is this possible? If so, how?

like image 462
naught101 Avatar asked Jun 10 '12 12:06

naught101


1 Answers

I think this will help:

  • Remove sensitive data
  • Rewriting History
like image 55
tomgi Avatar answered Oct 04 '22 20:10

tomgi