Photo by [Sirma Krusteva]( from [Unsplash](

Use git worktree to work with multiple branches

This post is about the awesome git worktree, that simplified my personal workflow with git very much. In the past I had at least 2 versions of repository checked out locally or fiddled around with git stash to find a thing I did weeks ago. But let’s talk about how I use git and how git worktree helped me. Use Cases When I’m reviewing a Pull or Merge Request, sometimes I would like to see the code in my own IDE instead of the GitLab or GitHub UI....

January 16, 2023 · 4 min · 663 words · André Sterba