File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
80119Options
81120-------
82121
You can’t perform that action at this time.
0 commit comments