# Optimize your workflow with Git stash

DevFeed: [Optimize your workflow with Git stash](<https://devfeed.tech/articles/optimize-your-workflow-with-git-stash-4110.md>)

Original publisher: [Read original article](<https://developer.mozilla.org/en-US/blog/optimize-your-workflow-git-stash/>)

Author: gitlab

Published: 2024-08-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [MDN Blog](<https://devfeed.tech/sources/mdn-blog.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [git](<https://devfeed.tech/tags/git.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [local](<https://devfeed.tech/tags/local.md>), [switching](<https://devfeed.tech/tags/switching.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

This tutorial explains how Git stash stores uncommitted local changes and examines its use when switching branches. It also presents temporary WIP commits as a safer, more convenient alternative because they are easier to track and can preserve changes on the branch.

## Source excerpt

Learn how to use Git stash to break down large commits. Discover a better approach for saving work when switching branches.