Conversation

Jarkko Sakkinen

Edited 6 months ago

For this worktree is useful:

git worktree add ~/work/linux-tpmdd-master master

When you have find a bug while working on feature branch and want to quickly do a fix without too much context switch…

Then later:

git worktree remove linux-tpmdd-master 
1
0
0

@jarkko I normally make these on /tmp and commit often on temp branch, prune will take care of the cleanup

1
0
0
@ethorsoe I use this when I have some possibly even unstaged and I don't want go trouble of stashing it. Before I copied the whole directory...
0
0
0