{"repo":"SiteRelEnby/git-leash","free":true,"listed":false,"github":"https://github.com/SiteRelEnby/git-leash","clone":"git clone https://github.com/SiteRelEnby/git-leash.git","description":"Time gated git commit blocking hook. \"Helps you stay focused on what you should be doing at certain times of day\". Especially if you're a puppy.","language":"Shell","stars":37,"topics":["adhd","bash","cli","developer-console","focus","focus-management","git","git-hooks","pre-commit-hook","productivity"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"git-leash Helps you stay focused on what you're supposed to be doing. A git pre-commit hook that blocks commits during configured focus windows. Overridable when you genuinely need to ship. Stealth-installable so it doesn't pollute your repo. By a puppygirl. Install Make sure /.local/bin is in your PATH . Then, in any repo: leash install automatically adds .leash and .leash-slip to .git/info/exclude — no .gitignore modifications, nothing tracked, pure stealth. Install with pre-commit If you're already using https://pre-commit.com, you can add this hook to your repository's .pre-commit-config.yaml file. The existence won't be stealthy in that case, as .pre-commit-config.yaml is normally committed to the repo. Config Place at /.leash (global) or .leash in your repo root (project-local overrides global). Run leash example for a fully commented config. Schedules Named blocks that define when commits are restricted. Multiple schedules stack — if any match, the commit is blocked. - days — comma-separated, lowercase (default: mon,tue,wed,thu,fri ) - start / end — 24h time. Overnight windows work ( 23:00 to 06:00 ) - timezone — local or IANA zone like America/New York Repo filters Without filters, a schedule blocks all repos. Add filters to be selective. allow= (allowlist) — only matching repos can commit during this window, everything else is blocked. This is the one you probably want for \"let me commit to work repos during work hours\": block= (denylist) — only matching repos are bl","default_branch":null,"files":null,"tree":[],"storefront":"/r/SiteRelEnby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SiteRelEnby/git-leash/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}