hyprwt (Git Worktree) is a C# port of autowt, making git worktrees easy to manage.
Why hyprwt? It's git worktrees on steroids.
# List worktrees
hyprwt
hyprwt ls
# Switch to or create worktree
hyprwt my-feature
# Interactive switch
hyprwt switch
# Clean up merged worktrees
hyprwt cleanup
# Interactive config
hyprwt configConfig files
- Global:
~/.config/hyprwt/config.json(Linux/macOS) or%APPDATA%\hyprwt\config.json(Windows) - Project:
hyprwt.jsonor.hyprwt.json(in repo root) - Backward compatible: Reads
hyprwt.jsonand.hyprwt.json
Environment variables
HYPRWT_TERMINAL_MODE- Terminal mode (tab/window/inplace/echo/vscode/cursor)HYPRWT_WORKTREE_AUTO_FETCH- Auto fetch (true/false)HYPRWT_CLEANUP_DEFAULT_MODE- Default cleanup mode
Example config
{
"terminal": {
"Mode": "tab",
"AlwaysNew": false
},
"worktree": {
"DirectoryPattern": "../{repo_name}-worktrees/{branch}",
"AutoFetch": true
},
"cleanup": {
"DefaultMode": "interactive"
},
"scripts": {
"SessionInit": "source .env",
"PostCreate": "npm install"
}
}