EasyEnv
Engineering/Courses/Catalog/Git/Stash and Cherry-pick
Git
BeginnerLesson 6 of 1325 min · hands-on

Stash and Cherry-pick

Part of the Git course

You are halfway through a change, files edited, nothing finished, when a teammate messages you: "can you look at a bug on main right now?" You cannot commit your half-done work, because a commit is supposed to leave the project in a state that makes sense on its own, and this does not.

Think about clearing your desk when a visitor drops by unannounced. You do not file every paper away properly, you do not finish what you were doing, you just sweep everything into a box, slide the box under the desk, and now the desk looks clean enough to work at something else. Nothing was thrown out. It is all still in the box, exactly as it was, waiting for you to pull it back out later. ...

Want to learn Git Stash and Cherry-pick in a real environment?

Click below, get a fresh Linux box with Git ready to go, and work through Stash and Cherry-pick hands-on with an AI tutor that knows your code.

Start this lessonStash and Cherry-pick

What you'll learn

  • Git stash
  • Git stash pop
  • Git stash list
  • Git cherry-pick

Read this lesson in your language

All lessons in this course

13 lessons
  1. 1Init and Your First Commit25 min
  2. 2Status, Diff, and Log25 min
  3. 3Branches and Merging30 min
  4. 4Resolving Merge Conflicts30 min
  5. 5Remotes: Push, Pull, Fetch30 min
  6. 6Stash and Cherry-pick25 min
  7. 7Rebasing30 min
  8. 8Interactive Rebase and Squashing30 min
  9. 9Tags and Releases20 min
  10. 10Branching Workflows20 min
  11. 11Recovering Lost Work25 min
  12. 12Hooks25 min
  13. 13Capstone: A Full Pull Request Flow40 min

Explore other courses

Stash and Cherry-pick - Git (English) | Engineering Courses