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.0.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_wt-0.1.0.tar.gz.
File metadata
- Download URL: git_wt-0.1.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9641d4b726902c18f408cce9ba71d3b73b50d7f7a2847c9bb0007998b3d542f2
|
|
| MD5 |
62f262d7c15aaec4af70d604d91c509a
|
|
| BLAKE2b-256 |
2d2cd3c18f04820a2d977d790bfd58b231874508da59d64da26baf380c110b2d
|
File details
Details for the file git_wt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: git_wt-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d363b6928515bb1d31d570fb7d02670d62edede7d5f8312c533b06207020236a
|
|
| MD5 |
a922c3ecb5aa8246abd9ce53274f8f5d
|
|
| BLAKE2b-256 |
355b14c89c8b4dd81c8570938ee35a2d7894f7ee16fd6dab5cccc4eec8757927
|