Skip to content

Local Identity

gtl env, gtl identity, and gtl whoami help keep repository-local identity explicit without changing global Git config.

Repo-Local Auth

bash
gtl env work-gh
gtl env connect gh work-gh
gtl env connect glab work-glab --host gitlab.com
gtl env check

gtl env writes a repo-local .envrc, records selected accounts, validates gh and glab when possible, and exports matching Git author and committer values for child processes.

Git Identity Profiles

bash
gtl identity set --email [email protected] --name "Dev Name"
gtl identity save work
gtl identity apply work
gtl identity list

Saved identity profiles live in global config.json under identity_profiles.

Account Visibility

bash
gtl whoami
gtl whoami --token

gtl whoami shows the repo-selected GitHub account, machine-default GitHub account, logged-in gh users, and token overrides. Use --token only when you intentionally need token values displayed.

Released under the MIT License.