Skip to main content

Small Git helpers for local-only ignores and tracked files you want Git to leave alone

Project description

git-omit

Small Git helpers for local-only ignores and tracked files you want Git to leave alone.

Local ignores

Kind Git mechanism Use when
Untracked .git/info/exclude The file should stay local and untracked
Tracked skip-worktree The file is tracked, but local changes should be left alone

Installation

uv tool install git-omit
# or from GitHub
uv tool install git+https://github.com/Noai-oss/git-omit

Commands

Command Example Effect
git-omit hide <pattern>... git-omit hide '*.log' Add patterns to .git/info/exclude
git-omit unhide <pattern>... git-omit unhide '*.log' Remove patterns from .git/info/exclude
git-omit freeze <path>... git-omit freeze config.local.json Mark tracked files as skip-worktree
git-omit unfreeze <path>... git-omit unfreeze config.local.json Clear skip-worktree
git-omit list git-omit list Print hidden patterns and frozen paths
git-omit --version git-omit --version Print the version

We recommend quoting glob patterns, like '*.log', so your shell passes them unchanged.

git-omit list prints tab-separated lines:

hide    *.log
freeze  config.local.json

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_omit-0.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

git_omit-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file git_omit-0.0.1.tar.gz.

File metadata

  • Download URL: git_omit-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 49de7eb9b07840452eca725d3dc31f927adb91e84e979999e21f93a79d5617eb
MD5 4e4e51a6fae8721d108008f2734764c3
BLAKE2b-256 20ee44cdf8f09ec5aab9a67be55645f8811ea5ab62564015931bcf01ae1eb7d7

See more details on using hashes here.

File details

Details for the file git_omit-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: git_omit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33ad18bf415534f198b3c9d8470964d861bd750d2360a90dd34730b7a6038d2f
MD5 af5d19d24b1b587d7b5d9ab4043beb9f
BLAKE2b-256 626b7e6a961c5c7726b8c78477d7d1161362841dab8ab57669a7a2f2419f218f

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