Skip to main content

git-omit

简体中文

Small Git helpers for files that should only be ignored locally.

Installation

Install the native command from PyPI:

uv tool install git-omit

Or install it into a Python environment:

pip install git-omit

The environment installation supports both entry styles:

git-omit --help
python -m git_omit --help

Prebuilt wheels are published for Windows x86_64, macOS x86_64 and ARM64, and glibc-based Linux x86_64 and ARM64.

Commands

Command Effect
git-omit hide <pattern>... Add patterns to .git/info/exclude
git-omit unhide <pattern>... Remove patterns from .git/info/exclude
git-omit freeze <path>... Mark tracked files as skip-worktree
git-omit unfreeze <path>... Clear skip-worktree
git-omit list List hidden patterns and frozen paths

Quote glob patterns so the shell passes them to git-omit unchanged:

git-omit hide '*.log'

Development

To build the project, install Zig 0.17.0 and uv.

uv sync
uv run git-omit --help

Build and run tests locally:

zig build test
zig build -Doptimize=ReleaseSmall

Build all five platform wheels into dist/ with Zig cross-compilation:

uv run python make_wheels.py

Pass --target to build a specific target. Only wheels are built; no source distribution (sdist) is produced.

Windows cross-build note: When building Linux or macOS wheels on Windows, make_wheels.py records mode 0755 in the wheel metadata because Windows chmod cannot set Unix executable bits.

Publish

Before publishing, set UV_PUBLISH_TOKEN, make sure the version matches in pyproject.toml and build.zig.zon, and commit all changes. Then run:

uv run python pypi_publish.py 0.0.4

The script checks the versions, working tree, and local and remote tags, then builds and validates all five wheels. It publishes to PyPI first, then creates and pushes the version tag.

Metadata

Release files for git-omit 0.0.4

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

Built distributions (wheels)

Table of built distributions (wheels) for git-omit 0.0.4
File
git_omit-0.0.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
git_omit-0.0.4-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
git_omit-0.0.4-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
git_omit-0.0.4-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
git_omit-0.0.4-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 439.7 kB

Release files / git_omit-0.0.4-py3-none-win_amd64.whl

Download URL git_omit-0.0.4-py3-none-win_amd64.whl
Size 120.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
7fda9850795efe11c364f153ca76f676a1cef594475f264e9d08b67ba5aa2c8a
BLAKE2b-256 checksum
How to use checksums
e703077586b900b9b5c238ac96a67c0f7e0744fb818fd2586025803091010243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_omit-0.0.4-py3-none-manylinux_2_17_x86_64.whl

Download URL git_omit-0.0.4-py3-none-manylinux_2_17_x86_64.whl
Size 83.0 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f75dff1daced939222f4405cbb5fc22bade0b793c2f74b7d29d9f36050a5f639
BLAKE2b-256 checksum
How to use checksums
a9ffeeb5f56c6e79d266be1e9a8071757eabb291d9bee47460c830ee96f84d33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_omit-0.0.4-py3-none-manylinux_2_17_aarch64.whl

Download URL git_omit-0.0.4-py3-none-manylinux_2_17_aarch64.whl
Size 89.3 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
26208f29428dd5bc7f2c86fe69d1009628078992d3ac63ed7ba290de4625435c
BLAKE2b-256 checksum
How to use checksums
641026261f35a3554c7e74cdcf60b4f863250f055a47e4d619bdf04e3ea1c14d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_omit-0.0.4-py3-none-macosx_11_0_x86_64.whl

Download URL git_omit-0.0.4-py3-none-macosx_11_0_x86_64.whl
Size 68.9 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
0cd89fa50ec09d8ed68ee1fd86b95ed2cc09c9edbd472d578de3b1ee1ef02eff
BLAKE2b-256 checksum
How to use checksums
6fb2c9b6cf5f94b94b5d06425b8462119b2061c5a9b1f8f28f6f872db1454f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_omit-0.0.4-py3-none-macosx_11_0_arm64.whl

Download URL git_omit-0.0.4-py3-none-macosx_11_0_arm64.whl
Size 77.5 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bd9d65e5cf790695fe1da75d4ab5c6c0a3e98d2c802170e7acc33da85f2d9b62
BLAKE2b-256 checksum
How to use checksums
92df3dbf3158b0ed10abeb0e8c4fcac7ebd543e3229dfcfe419dde54a0e144b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for git-omit 0.0.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