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.16.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.3

The script checks that the versions match and the Git working tree is clean, builds and validates all five wheels, creates and pushes the version tag, and then publishes the wheels to PyPI.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

git_omit-0.0.3-py3-none-win_amd64.whl (117.1 kB view details)

Uploaded Python 3Windows x86-64

git_omit-0.0.3-py3-none-manylinux_2_17_x86_64.whl (81.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

git_omit-0.0.3-py3-none-manylinux_2_17_aarch64.whl (87.1 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

git_omit-0.0.3-py3-none-macosx_11_0_x86_64.whl (67.1 kB view details)

Uploaded Python 3macOS 11.0+ x86-64

git_omit-0.0.3-py3-none-macosx_11_0_arm64.whl (75.3 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file git_omit-0.0.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: git_omit-0.0.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 117.1 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for git_omit-0.0.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6e5eb28f380d76a9abebeb6d2afea34b74d8ef83d1f1769f0a04862a1d6d592a
MD5 9f15825ec87af9cc440c4d0764fe5fab
BLAKE2b-256 9799a16a0be361a81f50e2563aa86d3480ac5fb67f567bf29604cd2e6ce75818

See more details on using hashes here.

File details

Details for the file git_omit-0.0.3-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: git_omit-0.0.3-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 81.0 kB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for git_omit-0.0.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1da46852be52ce0d96b56f3bcc0138c333680efe3907a21670c1f09b82323765
MD5 f41b602dca5d785158fe7e6b47668ac6
BLAKE2b-256 b3bfd3a7a501e26a9c1b1ad00df5af992ba7113d4424bda6fecbe58f30e943dc

See more details on using hashes here.

File details

Details for the file git_omit-0.0.3-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: git_omit-0.0.3-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 87.1 kB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for git_omit-0.0.3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 4409540ee6a443acf59ec19a94146f65a1e79549d63bf0535bfb0b131545e69e
MD5 acc005fdd7c882c0c8baff6a7932d3c3
BLAKE2b-256 a76cb565cb53b70a366524cbf1dbeb81cc06f698d620c01d6eafdee2cfa8a14d

See more details on using hashes here.

File details

Details for the file git_omit-0.0.3-py3-none-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: git_omit-0.0.3-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for git_omit-0.0.3-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ed1cbd57b43f38d3ddc3932f70ab259261199236d879edda00baa0d7509fb66c
MD5 8963ee1756ca767d32ed763146739024
BLAKE2b-256 461c1a4d7f26ac4020b179298848f8b318767cd76b1fa3a35a91e9d33caac147

See more details on using hashes here.

File details

Details for the file git_omit-0.0.3-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: git_omit-0.0.3-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 75.3 kB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}

File hashes

Hashes for git_omit-0.0.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88e141f3ad02ebb4d84c300cd498cd2ed9be92f0cacdd8882209ecd774f61958
MD5 45cb1c812dab01923a8c4d0bd3c2e33f
BLAKE2b-256 90f831828c3228499193d27c23777a1685fab88cac7e3065e2cac0e885962bea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

5 files

0.0.2

6 files

0.0.1

2 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