mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 08:53:55 +00:00
Update cheatsheets
This commit is contained in:
41
git-secret
Normal file
41
git-secret
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git secret
|
||||
|
||||
> Bash tool which stores private data inside a Git repository.
|
||||
> 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`
|
||||
Reference in New Issue
Block a user