Working with Git Worktrees in Magit

(emacsredux.com)

22 points | by srijan4 3 days ago

3 comments

  • brabel 58 minutes ago
    As the author, I have been using worktrees due to AI agents. And I love Magit but didn’t know it handles git worktrees so well! Thanks for letting me know, will start using magit to manage my worktrees immediately.
  • zrg 29 minutes ago
    I'm currently very much on the jujutsu train as the author also mentioned, i do recommend y'all give it a try
  • anilakar 17 minutes ago
    Worktrees are a must if you work with monorepos or just multiple branches in general. Lack of conventions (or rather the braindead defaults) and having to explicitly type out everything is what hinders adoption the most.

    I've solved this by running thin bash script wrappers that keep the workflow SVN-like with a root directory that contains per-branch directories and a hidden bare repo).