Skip to main content

Like .gitignore, but for what goes public. Keep a sanitized public mirror of your private repo.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_private2public-0.2.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_private2public-0.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file git_private2public-0.2.0.tar.gz.

File metadata

  • Download URL: git_private2public-0.2.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for git_private2public-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fbd9636e98ff4464305080dcff4d6345df3112b44b0a3637fe80b9fde4820df6
MD5 b97800ec0a90737b3c5a43f6dbcfc8d4
BLAKE2b-256 5718ca26dd50cc880c06f0a86b4cb3775c3d0aa9d89e22501b9fcec8f42d5c86

See more details on using hashes here.

File details

Details for the file git_private2public-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for git_private2public-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 273284980cd1344d90a10f8c5dae983d09d9038c8c7e69da0ab55e9c5e0ac883
MD5 76e7b51b720a335cffa4f3edd76807d5
BLAKE2b-256 0d8450a9e44bc042661fc46681d397d4fd331fde946124331db022a63807d252

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page