awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

How to edit an already added patterns? #50

Closed sayanee closed 7 years ago

sayanee commented 7 years ago

I already added a regex pattern to match for potential keys, but I realised that the pattern is wrong. How can I edit the pattern? Is there a text file I can access to edit it directly? Or?

Thanks!

mtdowling commented 7 years ago

You can edit the pattern in the .git/config file of your repository.

sayanee commented 7 years ago

Thank you! I just did that and it works.