Features
Multi-Identity
Define independent git credentials for work, personal projects, or client tasks in one configuration.
Dynamic SSH Keys
Uses Git's core.sshCommand inside the repo config. No more manual updates to ~/.ssh/config.
Keychain Isolation
Configures distinct credential helper usernames so macOS separates tokens for different accounts.
Zero Dependencies
Built with pure Node.js APIs. Light, blazing fast, and instantly executable with zero npm baggage.
Installation
Select your preferred installation method to install the CLI globally on your machine.
Via Homebrew (macOS)
Tap the repository and install the formula:
brew tap pavelkortp/tap
brew install git-profile
Via NPM
Install the package globally from the registry:
npm install -g @p-pavlo/git-profile
Usage Guide
The CLI is designed to be interactive, intuitive, and clean.
Interactive Commands
--local if inside a git repo, or --global if outside.~/.gitconfig).eval $(git-profile env work) to inject variables like GITHUB_TOKEN.Interactive Profile Creator
Fill out the form below to generate a valid configuration file. You can manually paste this into your ~/.git-profiles.json file.