Skip to main content

A lightweight CLI tool for managing git worktrees

Project description

git-wt

A lightweight CLI tool for managing git worktrees with automatic file syncing and post-create hooks.

Install

uv tool install git-wt

Usage

cd your-repo
git-wt

Features

  • Create worktrees with branch autocomplete
  • Auto-copy or symlink configured files (.env, .envrc, etc.)
  • Run post-create hooks (setup scripts)
  • List worktrees with dirty status
  • Remove worktrees with safety prompts
  • Path copied to clipboard on creation

Config

Create .git-wt.toml in your repo root:

[files]
mode = "copy"  # or "symlink"
paths = [".env", ".envrc"]

[hooks]
post_create = ["./setup.sh"]

License

MIT

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_wt-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

git_wt-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file git_wt-0.1.1.tar.gz.

File metadata

  • Download URL: git_wt-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for git_wt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3129744d8525e59113c5a4bcf761e5f75f28e7774b858155fc6c000b54e30d20
MD5 7995b25734cf00996f1bb474de5191bb
BLAKE2b-256 d32b2c97dca56de6cf76f34501fb1ee480aa678a9096af57f5649cbdaa3eab6d

See more details on using hashes here.

File details

Details for the file git_wt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: git_wt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for git_wt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf02c91c9c39dc30c87a849df06c4d6d5d02b1727a28c935252003c0146ba90e
MD5 e2207faffddec4bb9c80c30e70018085
BLAKE2b-256 9dec6e696863854943969e3e32fc80f7ec1754a31ca5e88bb5de22725014e27c

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