A lightweight, powerful PowerShell utility to manage multiple Git identities and SSH keys instantly. No more commit identity mistakes.
- β‘ Instant Switching: Changes Git identity (
user.name,user.email) and SSH keys immediately for both global and local repositories. - π SSH Auto-Generation: Automatically creates SSH key pairs, configures
~/.ssh/config, and registers withssh-agent. - π Smart Clipboard: Auto-copies public keys and opens GitHub SSH settings page for seamless key addition.
- π Remote URL Sync: Automatically updates repository remote URLs to match the active profile's SSH host alias.
- π‘οΈ Isolated Identities: Complete separation between Work, Personal, and any custom profiles.
- π¨ Beautiful UI: Clean, intuitive interface with color-coded status indicators and box-drawing characters.
You can run the script directly from your terminal without cloning the repository.
iwr -useb https://raw.githubusercontent.com/nhatpse/git-switch/master/install.ps1 | iexBackup: Universal Command (If Option 1 fails / For older Windows)
Use this if you see SSL/TLS errors or Policy restrictions.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/nhatpse/git-switch/master/install.ps1'))