Here's a Git feature I didn't know about - git worktree. Apparently you can 
check out different branches to different directories at the same time - 

"Jonathan Lydall <https://what.thedailywtf.com/user/jonathan-lydall>
 (nodebb) in reply to NtH 
<https://thedailywtf.com/articles/comments/some-version-of-a-process/1#comment-533095>
2021-09-22 
<https://thedailywtf.com/articles/comments/some-version-of-a-process#comment-533099>

   - Reply 
   
<https://thedailywtf.com/articles/comments/some-version-of-a-process?parent=533099#comment-form>
   
   I do this all the time, except I use git worktree to have the same Git 
   repository checked out in multiple folders.
   
   This saves me from having to have separate clones per branch, it's just 
   one single repo clone checked out in multiple places.
   
   It also means that each worktree folder sees any other worktree folder's 
   commits and references (since they're sharing the same .git folder) meaning 
   that I only have to fetch once and all the worktree folders have all the 
   commits available to them."
   
From, believe it or not, the Daily WTF 
<https://thedailywtf.com/articles/comments/some-version-of-a-process>.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1d086765-6185-4fd8-a4c2-0e09bcceada6n%40googlegroups.com.

Reply via email to