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.3.tar.gz (14.2 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.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for git_wt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 63ba8f44e61013c6715453a16ab051ac1f51a744d9aa99360dfd1ad0767a935a
MD5 7be252a0c5d7c17500e77b9ee654d344
BLAKE2b-256 b5836da308c580c6e254fe9f498266f5a6199ee9d6eb00896509d09194fda9a9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for git_wt-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 efd2cd77168369694eb6dfdf35aff34c5f49cf966f0b5366df4c00c138fd870f
MD5 8a1a78df44d8c7ba0cf9bc28b872cad9
BLAKE2b-256 4ec0f21ad282dfdb1680ca1657f3e7a490bc74e03985c45913ae2f373b524243

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