Skip to content
Back to skills

Git Sw

ASecurity

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

  • 57 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 31, 2026
ai-agentsgobashgit

Works with

  • cli

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill git-sw --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Sw?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Sw
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-git-sw/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-git-sw)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-sw
description: Easily switch between multiple Git profiles/configs (TUI + Automated mode)
homepage: https://github.com/thansetan/git-sw
metadata:
  {
    "openclaw":
      {
        "emoji": "πŸ”„",
        "requires": { "bins": ["git-sw"] },
        "install":
          [
            {
              "id": "go",
              "kind": "go",
              "package": "github.com/thansetan/git-sw",
              "bins": ["git-sw"],
              "label": "Install git-sw via go install",
            },
          ],
      },
  }
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.