Skip to content

Commit

Permalink
Add advance configuration section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Hoer committed Apr 3, 2018
1 parent 99800b9 commit 87fce8b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,45 @@ on each commit::




Advanced configuration
~~~~~~~~~~~~~~~~~~~~~~

Add a configuration template if you want to add hooks to all repositories you
initialize or clone in the future.

::

git secrets --register-aws --global


Add hooks to all your local repositories.

::

git secrets --install ~/.git-templates/git-secrets
git config --global init.templateDir ~/.git-templates/git-secrets


Add custom providers to scan for security credentials.

::

git secrets --add-provider -- cat /path/to/secret/file/patterns


Before making public a repository
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

With git-secrets is also possible to scan a repository including all revisions:

::

git secrets --scan-history




Options
-------

Expand Down

0 comments on commit 87fce8b

Please sign in to comment.