Skip to content

Commit d8da475

Browse files
authored
Merge pull request #72 from dhoer/adv-config
Add advance configuration section to readme
2 parents 2333a55 + 87fce8b commit d8da475

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

README.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,45 @@ on each commit::
7777

7878

7979

80+
81+
Advanced configuration
82+
~~~~~~~~~~~~~~~~~~~~~~
83+
84+
Add a configuration template if you want to add hooks to all repositories you
85+
initialize or clone in the future.
86+
87+
::
88+
89+
git secrets --register-aws --global
90+
91+
92+
Add hooks to all your local repositories.
93+
94+
::
95+
96+
git secrets --install ~/.git-templates/git-secrets
97+
git config --global init.templateDir ~/.git-templates/git-secrets
98+
99+
100+
Add custom providers to scan for security credentials.
101+
102+
::
103+
104+
git secrets --add-provider -- cat /path/to/secret/file/patterns
105+
106+
107+
Before making public a repository
108+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109+
110+
With git-secrets is also possible to scan a repository including all revisions:
111+
112+
::
113+
114+
git secrets --scan-history
115+
116+
117+
118+
80119
Options
81120
-------
82121

0 commit comments

Comments
 (0)