• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 3 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Switch between git worktrees with speed. ⚡

Git worktree switcher:zap:

Switch between git worktrees with speed. ⚡

demo of switching between git worktrees

Installation

Download the script from the Release section.

Make the script executable.

$ chmod +x wt

Copy the executable to any directory in your $PATH

$ sudo cp wt /usr/local/bin

Tab Autocompletion ⚡

For Bash

sudo cp completions/wt_completion /etc/bash_completion.d

For ZSH

Note: completion file for zsh has _ prefix

Find paths where you can store your completion

print -rl -- $fpath

Copy completion script to one of that location and restart the shell.

sudo cp completions/_wt_completion <one-of-$fpath>

exec zsh

For Fish

cp completions/wt.fish ~/.config/fish/completions

Tab autocompletion works for switching between your worktrees.

wt <TAB> <TAB>

# OR

wt <completion-characters> <TAB>

Usage

Switch between worktrees. You can do a text search to change to the worktree directory.

$ wt <worktree-name/search-term>

Go to root worktree directory

$ wt -

List out all the worktrees.

$ wt list

Show help message

$ wt help

Update to the latest release

$ wt update

Show the CLI version

$ wt version

More Repositories

1

good-first-issues

Find good first issues right from your CLI! 🚀
Python
86
star
2

timezones-cli

CLI toolkit for timezones 🌏
Python
72
star
3

12ft-browser-extension

Bypass Paywalls using 12ft ladder 🪜
Shell
50
star
4

Starred-Repo

⚡ Collection of Starred Repos to find them easily
48
star
5

air-quality-cli

Get Air Quality Index for your city/country 😷
Go
44
star
6

nepali-devblogs

Collection of blogs/publications by Nepali devs.
33
star
7

slack-status-cli

Lightning fast Slack status updates! ⚡
Go
25
star
8

github-code-editors

Browser extension to open GH repos on different online code editors ✨
JavaScript
11
star
9

aws-ebook-downloader

Download eBooks from AWS Resource Hub without filling forms ⚡
Shell
9
star
10

cookiecutter-python-cli

Bootstrap your Python based CLI applications within minutes! 🚀
Python
7
star
11

toc-md

Generate/inject "Table of Contents" for markdown files.
Go
6
star
12

finger

zsh plugin to enable/disable touchscreen on Debian-based distros.
Shell
5
star
13

git.ir_downloader

Simple video downloader for git.ir
Python
5
star
14

MetalSlug

Play: :rage2: https://yankeexe.github.io/MetalSlug/
JavaScript
4
star
15

makefile-tutorial-sample-repo

Sample repo for my video on Makefile (https://youtu.be/vybdPTfNLo4)
Python
4
star
16

deta-cron-sample-repo

Deta Cron Function Sample Repo for my video.
Python
4
star
17

blogs

Collection of personal blogs
3
star
18

dotfiles

dotfiles 🚀
Shell
3
star
19

Notes

Notes of different technologies for a quick reference.
2
star
20

openfaas-functions

Collection of Serverless OpenFaas functions.
Python
2
star
21

Terminal-Notes

📓 Take Notes in your Terminal!
JavaScript
1
star
22

kindle-highlights-extractor

Extracts Kindle Clippings into nicely formatted JSON file.
Python
1
star
23

cookiecutter-mkdocs-material

Setup documentation for your app in a jiffy. ⚡
Makefile
1
star
24

JavaPracticeNotes

☕ Curated Notes of Java.
Java
1
star