Skip to content

Commit

Permalink
updated markdown to add script to remove existing gpg keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dwara001 committed Jul 30, 2025
1 parent 0d55977 commit e6ead54
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/how-to/git/add-user-to-git-secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,19 @@ in merge conflicts and more work figuring out what has actually changted.

In your PR, please include the output of the `gpg {USERNAME}.gpg.asc` in the Pull Request text.

## Remove gpg keys for non existent users

The below is an example.

```script
git-secret reveal -f
cd init/git-secret
git-secret removeperson roy.d.ashley.jr@census.gov
git-secret removeperson patrick.o.ibekwe@census.gov
git rm ashle001*asc ibekw001*asc
./setup-git-secret.sh
git commit -m'remove ashle001 and ibekw001 gpg keys' -a
```
## Using the updated encrypted files

Once it is merged, you can inform the user, and they refresh and reveal in order to use the unecrypted files.
Expand Down

0 comments on commit e6ead54

Please sign in to comment.