-1

I have been pushing to a repo for a while. At one moment we had a Base.pm perl module where we kept also some passwords. Later we removed the passwords, but since git (& github.com) remembers everything, when I check the "history" of the Base.pm file I can see old versions where the passwords still appeared.

I want to erase the history of that file. Is there an easy way to make this?

Ian Stapleton Cordasco
  • 26,944
  • 4
  • 67
  • 72
ado
  • 1,451
  • 3
  • 17
  • 27

1 Answers1

3

Even if you erase the file, the passwords have still been visible to the public. They may even continue to be visible via things like The Wayback Machine. So no matter what, you need to change your passwords. Once you do that, it doesn't matter so much whether the file stays in git or not.

Brad Mace
  • 27,194
  • 17
  • 102
  • 148