Skip to content

Like π—΄π—Άπ˜ π˜„π—Όπ—Ώπ—Έπ˜π—Ώπ—²π—², but smoother

License

Notifications You must be signed in to change notification settings

grievouz/git-wt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

git-wt

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

Shell setup

Set up shell integration to enable the git wt subcommand and seamless directory switching.

Bash

Add to your .bashrc:

eval "$(git-wt init bash)"

Zsh

Add to your .zshrc:

eval "$(git-wt init zsh)"

Fish

Add to your ~/.config/fish/config.fish:

git-wt init fish | source

Contributing

Contributions to git-wt are welcome! Please open an issue or submit a pull request on the GitHub repository.

License

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.

About

Like π—΄π—Άπ˜ π˜„π—Όπ—Ώπ—Έπ˜π—Ώπ—²π—², but smoother

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •