Name Mode Size
.husky 040000
meta 040000
redacted 040000
tests 040000
.editorconfig 100644 0 kb
.gitattributes 100644 0 kb
.gitignore 100644 1 kb
.prettierignore 100644 0 kb 100644 5 kb
LICENSE 100644 34 kb 100644 2 kb
commitlint.config.js 100644 0 kb
package-lock.json 100644 247 kb
package.json 100644 2 kb
poetry.lock 100644 6 kb
pyproject.toml 100644 0 kb
<div align="center"> <h1>Redacted</h1> <p>Keep your config secrets in place and out of Git.</p> <a href=""> <img alt="Version 0.1.0" src="" /> </a> <a href="" target="\_blank"> <img alt="Licensed under the GNU General Public License v3.0" src="" /> <a href=> <img src=> </a> <br> <br> </div> ## Installation Clone this repository or download the [latest release]( ```shell git clone ``` Install the dependencies. Poetry will automatically create and activate a virtual environment if it does not detect an active one: ```shell poetry install ``` Build the package: ```shell poetry build ``` Finally, install the resulting wheel, located under `dist/`, using `pip`: ```shell pip install --user dist/redacted-0.1.0-py3-none-any.whl ``` ## Usage Create a `.redacted.conf` file at the root of your repository. For each file to redact, create a section with the relative path to the file as the name, and add a key-value pair to the section for each string to be redacted. ```toml [path/to/file.txt] KEY: secret ``` Configure the filter in `git`: ```shell git config filter.redacted.clean "git-redact clean %f" git config filter.redacted.smudge "git-redact smudge %f" git config filter.redacted.required true ``` Enable the filter in `.gitattributes`: ``` * filter=redacted ``` ## Contributing Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change. By participating in this project, you agree to abide by the terms of the [Code of Conduct]( ## License [Redacted]( is licensed under the [GNU General Public License v3.0](