nw
git-worktree-switcher
nw | git-worktree-switcher | |
---|---|---|
1 | 2 | |
2 | 124 | |
- | - | |
0.0 | 1.8 | |
over 2 years ago | 11 days ago | |
Shell | Shell | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nw
-
New Worktree? No Problem.
Enter, NW. Short for New Worktree… or North West if you're looking at a map or compass. A small little bash script that solves the above issue in the manner that we just outlined. And as a script, you can easily make a git hook or shortcut or add it to something like your editor to run automatically when you create a new worktree. I'm trying to solve a problem here people. My fingers, are short, stubby, there's no finger treadmill to get them slim and fit enough for writing npm install and cp .env . every time I make a new branch on my local machine. No, my fingers prefer to lay around all day and do nothing.
git-worktree-switcher
-
Git Worktrees - git's old hidden feature you never knew
For the terminal, another great tool I've found is a little bit less main stream, is Git worktree switcher! ⚡ . This little script can be installed quite easily and provides a nice way to switch between worktrees with fuzzy find support. In the example above, I can just do wt fix-css and the script takes me to the fix-css worktree directory, and I can also jump back to the main working tree with wt - . This also renders my second function completely useless.
-
Practical Guide to Git Worktree
Download wt CLI tool for faster switching between worktrees.
What are some alternatives?
zsh-git-fzf - An interactive ZSH plugin that wraps some git operations for simplicity and productivity. Also, it contains completions and combines the FZF tool to make the operations more convenient.
useful-scripts - Useful everyday bash scripts and commands for Linux by Artem S. Tashkinov
valetpress - Laravel Valet + WordPress + WP-CLI = Quick and easy local WordPress setup.
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
BranchFixer - Fix the mess with master/main git branches. BranchFixer is a practical tool designed to streamline Git workflows by automatically correcting branch name errors in repositories with both 'master' and 'main' branches, integrating seamlessly with .bashrc/.zshrc
bash-wtf - A command for when you have no idea wtf just happened
Rick-Roll-Shell - Setup Rick Roll Shell in your friend's Terminal in a second!
git-heatgrid - Visualize git commits as a calendar heatmap
ai-bash-gpt - AI - a commandline ChatGPT (3.5/4) client featuring multiple conversations support, automatic topic identification, image generation and stdin piping (sending files to ChatGPT for inspection)
cli - A tiny CLI for HedgeDoc