One upon a time I was almost leaked my work email while committing edits to
public repo because of system-wide git config user.*
settings.
So I've decided to write a script which helps me to switch git user fast and
turns on gpg-signing because it depends on installed personal signs via gpg
.
gpg
,python3
,git
- Installed GPG-signs (see Managing commit signature verification)
$ make install
Also make sure that PATH have include
~/.local/bin
.
Just type in git-repo:
$ git-gpg-user
- POC, First revision.
- Flag for preventing exit code 1 in git-hooks for example.