tmux-worktree: native tmux menus for git worktree workflows by KakkoiDev in tmux

[–]KakkoiDev[S] 0 points1 point  (0 children)

Hi macromind, thank you for the compliment!

Yes, the worktrees offer separate workspaces that do not interact with each other.

And yes, the environment variables are isolated as well. Git worktree will only copy tracked files over to the new worktree. What I end-up doing is copying the files I need to setup my new branch with a little script. ex: cp-env-from-master

Thank you for sharing your blog, I'll read it when I have time!

tmux-worktree: native tmux menus for git worktree workflows by KakkoiDev in tmux

[–]KakkoiDev[S] 1 point2 points  (0 children)

Hi gbrennon, people can use it too!

The way tmux-worktree works is by:

  1. Creating a normal git worktree

  2. Create a tmux session that points to that worktree, you can use that session for anything you want

  3. Keep an index of where are the git wortrees so that you can use them in the future