Skip to content

nhatpse/git-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Git Profile Manager for Windows πŸ”

A lightweight, powerful PowerShell utility to manage multiple Git identities and SSH keys instantly. No more commit identity mistakes.

PowerShell Git GitHub

✨ Features

  • ⚑ 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 with ssh-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.

πŸš€ Quick Start (Run without installing)

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 | iex

Backup: 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'))

About

A lightweight PowerShell utility to manage multiple Git identities and SSH keys on Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors