Git stash, worktrees and cherry-pick: juggling work in progress
11 steps · about 3 h 17 min · Intermediate
- Git Stash, Cherry-Pick and Worktrees: When to Use Each (article, dev-talk.com, 15 min)
It gives you a map of which tool fits which situation before you learn each command.
- Git Deep Dive part 9: Save the current work (article, DEV Community (kenakamu), 15 min)
It covers stash from the ground up, including apply vs pop, and shows that a stash is just a Git object.
- Git Stash, Cherry-Pick, and Bisect (tutorial, Pipelines and Pizza, 25 min)
This hands-on lab has you run stash and cherry-pick together, and ends with a command cheat sheet.
- Git Stash and Cherry-Pick for Test Context Switching (tutorial, learnautomatedtesting.com, 25 min)
It adds cherry-pick ranges, the --no-commit preview, and conflict handling with --continue and --abort.
- git-tutorial (repo, GitHub (rozele), 40 min)
You clone it and practise cherry-pick, stash and conflicts on prepared branches.
- Git Worktree Tutorial (video, YouTube, 10 min)
A short, simple video introduces the worktree command, the alternative to stashing when you switch branches.
- A gentle introduction to Git worktree (article, GitHub Gist (ThomasFrans), 10 min)
It explains why switching branches clobbers local changes and how worktrees avoid that.
- Git Tutorial #24: What Is Git Worktree and How to Use It (video, YouTube, 12 min)
A second walkthrough lets you see worktree add, list and remove in practice.
- git-worktree documentation (doc, git-scm.com, 20 min)
The official reference covers the options and edge cases, such as pruning and locking, that tutorials skip.
- Advanced Git: Stash, Worktrees, Bisect, Reflog, and Cherry-Pick (blog, amsayed.dev, 15 min)
It covers advanced patterns such as stashing single files, git stash branch, and cherry-pick -x.
- Git Stash and Cherry-pick: Git Cherry-Pick Duplicate (article, TheCodeForge, 10 min)
Last, it warns about a common mistake, cherry-picking a stash commit, and shows how to recover from it.