tldr/pages/common/git-secret.md

37 lines
606 B
Markdown
Raw Normal View History

2021-09-26 16:56:58 +01:00
# git secret
> Stores private data inside a Git repository. Written in Bash.
2021-09-26 16:56:58 +01:00
> More information: <https://github.com/sobolevn/git-secret>.
- Initialize `git-secret` in a local repository:
`git secret init`
- Grant access to the current Git user's email:
`git secret tell -m`
- Grant access by email:
`git secret tell {{email}}`
- Revoke access by email:
`git secret killperson {{email}}`
- List emails with access to secrets:
`git secret whoknows`
- Register a secret file:
`git secret add {{path/to/file}}`
- Encrypt secrets:
`git secret hide`
- Decrypt secret files:
`git secret reveal`