(no title)
Ankhers | 3 years ago
I personally use Emacs and magit which has great support for worktrees. I do not know if the VSCode git integration supports it.
Ankhers | 3 years ago
I personally use Emacs and magit which has great support for worktrees. I do not know if the VSCode git integration supports it.
CompuIves|3 years ago
It's especially useful for things like migrations or dependency management. In one branch I could work on something that has some database migrations, and then I can still switch to other branches without having to roll back the migrations.
I didn't know about git worktrees though! I'm going to read up on this.
albuic|3 years ago
This is a good use case of git worktree.
> I didn't know about git worktrees though! I'm going to read up on this.
Indeed, you will like it.
The only limitation is that you cannot checkout the same branch in multiple worktree.
faitswulff|3 years ago
I would love to have this workflow locally.
slaymaker1907|3 years ago
The only thing kind of clunky is that you have to keep track of which branch is open in which directory since you can't checkout the same branch in two different directories.
albuic|3 years ago
"git worktree list" is your friend ;-)