﷽
gthlpr is a small Bash-based Git credential helper for Linux.
It manages Git credentials in a local protected database and integrates with Git's credential-helper protocol. The goal is to make working with repository tokens simple while keeping the credentials encrypted and out of normal Git configuration files.
- Stores credentials per repository.
- Supports Git's
get,store, anderaseoperations. - Encrypts stored tokens with GPG.
- Uses the user's sudo password as the current master password.
- Provides an interactive repository selector when Git does not provide a repository path.
- Supports
fzfas an alternative repository selector. - Provides credential export functionality.
- Provides password-recovery functionality.
gthlpr follows Git's credential-helper protocol.
Git can send information such to get token as:
protocol=https
host=github.com
path=owner/repository.git
For get, gthlpr returns:
username=username
password=token
For store and erase, Git does not require credential output.
The repository path is important because it allows credentials to be associated with individual repositories.
If Git does not provide a repository path, gthlpr can display the repositories stored in the database.
The selector supports:
↑/↓— move through repositoriesEnter— selectz+Enter— usefzf
The terminal UI is drawn directly on /dev/tty so Git's credential protocol output remains separate from the interactive interface.
gthlpr get
gthlpr store
gthlpr erase
gthlpr export
gthlpr passwd_rec
gthlpr setup
gthlpr -h
Retrieve a credential for Git.
Encrypt and store a Git credential.
Remove a stored credential.
Export the credential database either as a direct copy or as decrypted plaintext.
Provides the password-recovery functionality.
Sets up the environment and required dependencies.
Display the help message.
gthlpr keeps its UI separate from Git's protocol output.
Current versions require:
- Bash
sudogpgbase64
Optional:
fzf