Skip to main content

gitpro

gitpro

The right Git identity, SSH key and signature for every repository.

gitpro.dev · PyPI · VS Code · made by Yantrakar

gitpro refuses a commit in a work repo that would use the personal email, removes the repo's own email setting, and the commit then uses the work email, while a personal repo keeps the personal one

Work on a company repository, commit with your work email. Switch to a personal project, use your personal identity. Gitpro chooses by remote URL, not by where you happened to clone the repository.

Useful when you have more than one GitHub/GitLab account, separate work and personal keys, or keep finding the wrong email on your commits.

Try it

Requires Linux or macOS, Git 2.36+, Python 3.9+ and OpenSSH. Install from PyPI with pipx.

pipx install gitpro
gitpro setup

Setup offers to look through your repos and proposes your identities. Accept, edit or answer the questions yourself; no TOML editing is needed. One preview shows everything, including the commit guard and, with Claude Code, its hook and MCP server. One yes applies it all. Setup never changes your repos.

flowchart LR
  S["gitpro setup"] --> HC{"Config <br/>exists?"}
  HC -->|no| L["Read your repos, <br/>SSH config and <br/>editor recents, <br/>if you agree"]
  L --> Q["Propose <br/>identities; you <br/>accept or edit"]
  Q --> I
  HC -->|yes| I["Inspect config, <br/>Git and SSH files, <br/>keys, guard, <br/>agent hook, MCP"]
  I -->|all current| OK["Nothing <br/>to do"]
  I -->|something to do| PV["One preview, <br/>each part with <br/>its undo"]
  PV --> ASK{"Apply <br/>all?"}
  ASK -->|no| NONE["Nothing <br/>written"]
  ASK -->|yes| AP["Write it, print <br/>the public keys <br/>to register"]
  AP --> NX["Next: <br/>gitpro scan"]

Then:

gitpro why               # inside a repository: the expected identity and anything overriding it
gitpro scan              # repos that need a fix, with the command for each

Already have a config? gitpro setup brings this machine up to date with it. gitpro setup -n only shows what is left to do. Prefer editing files? The user guide covers the full TOML format.

What you get

  • Work/personal separation: names, emails, SSH keys and signing per host/owner.
  • Answers, not guesswork: gitpro why explains mismatches and suggests a fix.
  • A safety net: optional hooks can block wrong-identity commits and pushes.
  • Editor and container support: see your identity in VS Code and carry it into dev containers.

Gitpro generates ordinary Git and SSH configuration; it needs no background service. Changes can be previewed, existing hand-written files are backed up, and key uploads are never part of setup.

Using VS Code?

The extension shows the current identity and helps find repository-level overrides. It runs the same commands as the terminal. Install the extension.

Go further when you need to

AI agents get the same answers through the MCP server and the Claude Code hook: see agent workflows.

I want to… Start here
Understand matching, SSH keys or signing Configuration
Find wrong identities or forgotten work Daily use · Finding things
Use dev containers Container setup
Configure team policy, CI or AI assistants Teams and CI · AI assistants
Look up a command or undo changes Command reference · Undo
Troubleshoot or contribute Troubleshooting · Development

Problems and questions

Run gitpro report to draft an issue with the versions and a redacted gitpro why; it shows you the draft and opens nothing until you say yes. Or open an issue at github.com/Yantrakar/gitpro/issues. Report a security problem privately with gitpro report --security, as the security policy describes, not in a public issue.

License

MIT

Metadata

Release files for gitpro 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitpro 0.4.3
File Size Uploaded Provenance Actions
gitpro-0.4.3.tar.gz 322.1 kB With provenance Details for gitpro-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gitpro 0.4.3
File Interpreter ABI Platform Actions
gitpro-0.4.3-py3-none-any.whl Python 3 none any Details for gitpro-0.4.3-py3-none-any.whl

Total release size: 677.2 kB

Release files / gitpro-0.4.3.tar.gz

Download URL gitpro-0.4.3.tar.gz
Size 322.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cca9fbef7f387ebc593b8f8d4cd1e073473b5a8cb36b8123dbdd163ee3f98052
BLAKE2b-256 checksum
How to use checksums
47d11c36b06a97e33457cec5bfab914cc6d16d904226c7c5f60972a2929d589d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / gitpro-0.4.3-py3-none-any.whl

Download URL gitpro-0.4.3-py3-none-any.whl
Size 355.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78aa466ec914b9cf544ec3ef79c3455b921545d04cfada4166756204b76cb7b7
BLAKE2b-256 checksum
How to use checksums
002b9fa8beeace0b52d985c0153d48f5099063f7400824b1613dc755ca260d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for gitpro 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gitpro-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page