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

Adding to global pattern not shown in config file #51

Closed tclu82 closed 7 years ago

tclu82 commented 7 years ago

Hi,

git secrets --add 'my_pattern1', my_pattern1 is shown in .git/config. However, git secrets --add --global 'my_pattern2' is not shown in .git/config. Where can I find global pattern? Thanks

mtdowling commented 7 years ago

You can edit the config file of the current repo using git config -e.

You can edit the global config file using git config -e --global.