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

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.2
File Size Uploaded
git_private2public-0.2.2.tar.gz 39.6 kB Details

Built distribution (wheel)

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

Total release size: 63.1 kB

Release files / git_private2public-0.2.2.tar.gz

Download URL git_private2public-0.2.2.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cf3d739e8867d03334a9d7de52e21c9ebb048d2d72b1770d21283d0c1571c88c
BLAKE2b-256 checksum
How to use checksums
71ec0bbf211fa5a321e99fe8b025949f7f491c064262457d832a20aa7d8232ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

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

Download URL git_private2public-0.2.2-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22bea6b699466dff05d3278824c95394321de6dae2439dae03baaf0af5375e44
BLAKE2b-256 checksum
How to use checksums
9ba3ff662ae35ddc7fd643acb43aec98e61d3f61d8464bc82a03470db7a90ce5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.1

2 release files

0.1.0

2 release files

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