# Git Sw

> Easily switch between multiple Git profiles/configs (TUI + Automated mode)

- Skill: `diegosouzapw/git-sw` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/git-sw`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/git-sw/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/diegosouzapw/git-sw

---


# git-sw 🔄

A CLI tool to switch between multiple Git profiles/configs. Supports both an interactive TUI for humans and a flag-based mode for agents.

## Usage (Agent/Automated)

Always use the `--no-tui` flag when calling this tool from an agent session.

### List Profiles
```bash
git-sw --no-tui list
```

### Create a Profile
```bash
git-sw --no-tui --profile <name> --name "<user-name>" --email "<user-email>" create

# With signing key
git-sw --no-tui --profile <name> --name "<user-name>" --email "<user-email>" --signing-key <key> --key-format <format> create
```

### Switch Profile
```bash
# Locally
git-sw --no-tui --profile <name> use

# Globally
git-sw --no-tui --profile <name> -g use
```

### Delete a Profile
```bash
git-sw --no-tui --profile <name> --yes delete
```

## Options
- `--no-tui`: Required for non-interactive usage.
- `--profile`: The name of the profile.
- `--name`: Git user name.
- `--email`: Git user email.
- `--signing-key`: Signing key (GPG key ID, SSH pub path, or X.509 cert).
- `--key-format`: Signing key format: `openpgp`, `ssh`, or `x509`.
- `--gpg-program`: GPG program path (default: `gpg`).
- `--yes`: Bypasses confirmation prompts.
- `-g`: Global mode.

