Gitas
Git Account Switch
Install / Use
/learn @letmutex/GitasREADME
gitas
Git Account Switch / Git As

Installation
macOS / Linux
# Install Script (default: ~/.gitas/bin)
curl -fsSL https://raw.githubusercontent.com/letmutex/gitas/main/install.sh | sh
# System-wide install (requires sudo)
curl -fsSL https://raw.githubusercontent.com/letmutex/gitas/main/install.sh | sudo INSTALL_DIR=/usr/local/bin sh
# Custom install directory
curl -fsSL https://raw.githubusercontent.com/letmutex/gitas/main/install.sh | INSTALL_DIR=~/.local/bin sh
Windows
# Install Script (PowerShell)
irm https://raw.githubusercontent.com/letmutex/gitas/main/install.ps1 | iex
Homebrew
brew install letmutex/tap/gitas
Cargo
cargo install gitas
Usage
# Open interactive TUI to switch, edit, or remove accounts
gitas
# Add a new account (Manual or GitHub Login)
gitas add
# Run any git command as a specific account
# Useful for cloning private projects
gitas git clone <url>
How It Works
Switching Identity: Updates your local/global git config and pre-fills the credential cache, so subsequent git commands work seamlessly without prompts.
Command Proxy (gitas git): Executes git with a temporary identity and credential helper using -c flags. It does not modify any config files, making it perfect for one-off commands.
Secure Storage: All tokens are stored in your system's native keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service).
Data
- Config:
dirs::config_dir()/gitas/accounts.json - Secrets: System Keychain
Uninstallation
# Linux / macOS (Install Script)
rm -rf ~/.gitas
# System-wide install
sudo rm -f /usr/local/bin/gitas
# Windows (PowerShell Install Script)
Remove-Item -Path "$env:LOCALAPPDATA\gitas" -Recurse -Force
# Homebrew
brew uninstall gitas
# Cargo
cargo uninstall gitas
License
This project is licensed under the Apache License, Version 2.0.
Related Skills
node-connect
337.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.1kCommit, push, and open a PR
