https://github.com/3rd/work
Convenient wrapper over git-worktree, using fzf for switching between trees and branches.
https://github.com/3rd/work
fzf git worktree
Last synced: 3 months ago
JSON representation
Convenient wrapper over git-worktree, using fzf for switching between trees and branches.
- Host: GitHub
- URL: https://github.com/3rd/work
- Owner: 3rd
- Created: 2020-06-17T12:46:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:21:06.000Z (almost 3 years ago)
- Last Synced: 2025-06-22T08:48:07.510Z (5 months ago)
- Topics: fzf, git, worktree
- Language: Shell
- Size: 6.84 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# work
> Simple utility to work on multiple things at the same time, powered by git-worktree and fzf.
---
`work` is a convenient wrapper over `git-worktree`.
Extra dependencies:
- fzf
- ripgrep
---
### Usage
```
Usage:
work interactive switcher, prints tree path
work i, init prepare cwd for work
work ls, list list work trees
work new create new work tree and switch to it
work b, branch [name] switch current work tree to branch
if name is provided, switch to branch or create it
if name is not provided, select branch interactively
work help print usage
```
### Shell wrapping
You need to create a function in your shell that will `cd` based on `work`'s output.
**Fish shell:**
- Edit `work.fish` and replace the path to the `work` script.
- Add `work.fish` to your fish functions directory.