Usage: git-wt [BRANCH] [COMMAND]
Commands:
init Print shell integration script (e.g. git-wt init fish | source)
clone Clone a repository with bare worktree structure
fetch Fetch from origin with prune
add Add a new worktree
rm Remove a worktree
switch Switch to a worktree by branch name
pull Pull changes in a worktree
help Print this message or the help of the given subcommand(s)
Arguments:
[BRANCH] Branch name to switch to (when no subcommand is provided)
Options:
-h, --help Print help
Set up shell integration to enable the git wt subcommand and seamless directory switching.
Add to your .bashrc:
eval "$(git-wt init bash)"Add to your .zshrc:
eval "$(git-wt init zsh)"Add to your ~/.config/fish/config.fish:
git-wt init fish | sourceContributions to git-wt are welcome! Please open an issue or submit a pull request on the GitHub repository.
git-wt is released under the Unlicense. This means the code is in the public domain, and you can use, modify, and distribute it without any restrictions. For more information, please see the Unlicense website.