0

So, I found that I have a hardcoded confidential data in one .json file and I am trying to find a solution how to change data in all previous commits, so I want to put that confidential data to .env file. Can I do it in some way?

Horhi
  • 75
  • 1
  • 9

1 Answers1

3

You need to do git filter-branch --tree-filter. You can refer to this https://help.github.com/articles/removing-sensitive-data-from-a-repository/

Ira Shyti
  • 224
  • 1
  • 3