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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ba8f44e61013c6715453a16ab051ac1f51a744d9aa99360dfd1ad0767a935a
|
|
| MD5 |
7be252a0c5d7c17500e77b9ee654d344
|
|
| BLAKE2b-256 |
b5836da308c580c6e254fe9f498266f5a6199ee9d6eb00896509d09194fda9a9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd2cd77168369694eb6dfdf35aff34c5f49cf966f0b5366df4c00c138fd870f
|
|
| MD5 |
8a1a78df44d8c7ba0cf9bc28b872cad9
|
|
| BLAKE2b-256 |
4ec0f21ad282dfdb1680ca1657f3e7a490bc74e03985c45913ae2f373b524243
|