Skip to main content

git-private2public

PyPI version CI

English · Русский

Like .gitignore, but for what goes public.

Install it, run it inside a Git repository, and follow the prompts.

pip install git-private2public
git-private2public

That is enough to scan tracked files and Git history for known credentials. No config is required. In an interactive terminal, the tool can also enable automatic checks before every git push.

What do you want to do?

Check this repository

git-private2public

The tool scans the repository and explains what it found. Secret values are never printed in full.

Publish a safe public copy

git-private2public init
git-private2public publish

init guides you through the one-time setup. publish creates a cleaned public mirror without changing the private repository.

Something is not working

git-private2public doctor

doctor checks Git, configuration, hooks and access to both repositories, then tells you what to fix.

Simple by default

  • no setup is needed for scanning;
  • safe credential rules are built in;
  • one clear command performs one clear action;
  • interactive sessions explain the next step;
  • advanced settings remain available when needed.

Most users only need:

git-private2public           scan now
git-private2public init      prepare private → public publishing
git-private2public publish   publish the clean copy
git-private2public doctor    diagnose a problem

Everything else—custom rules, replacements, CI JSON, hooks, branches, tags, YAML compatibility and implementation details—is documented separately:

Advanced configuration

Safety

Publishing works in a temporary clone. The private repository is not rewritten. Concurrent public updates are protected with --force-with-lease, pushed commits are verified, and existing tags are never force-overwritten.

License

MIT

Metadata

Release files for git-private2public 0.2.4

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

Source distribution (sdist)

Source distribution for git-private2public 0.2.4
File Size Uploaded Provenance Actions
git_private2public-0.2.4.tar.gz 1.7 MB Without provenance Details for git_private2public-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for git-private2public 0.2.4
File Interpreter ABI Platform Actions
git_private2public-0.2.4-py3-none-any.whl Python 3 none any Details for git_private2public-0.2.4-py3-none-any.whl

Total release size: 1.7 MB

Release files / git_private2public-0.2.4.tar.gz

Download URL git_private2public-0.2.4.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
b94310e49f68bb326e23409e36a64f07a4c24e78567fd962af4a7682f594140c
BLAKE2b-256 checksum
How to use checksums
9558005bf793d5f9c841e22ee7d29c6f6ee8c42e238e9bb80e23f4bc7bf388bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / git_private2public-0.2.4-py3-none-any.whl

Download URL git_private2public-0.2.4-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4460bf57334ea5dba0b622fb46697380b2922d270d11cf2e1c1906bd81265931
BLAKE2b-256 checksum
How to use checksums
f8c23a1c914f2685567624d1f25a0a2e55c6ff9fa3c52fd9f9eeadd204cf29bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for git-private2public 0.2.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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