You're in the middle of hacking on some code when you have to switch context. Review a PR, work on a hot fix, etc.
There are 3 ways that I found to shift gears:
1. stop what you're doing and commit your work.
2. stash your work
3. use a different worktree (git worktree)
I go over these 3 options and compare them.
00:00 Introduction
00:45 Using git checkin
01:38 Using git stash
03:14 Using git worktree
04:32 Difference between stash and worktree
4 Comments