Skip to content

What is Git stash? #242

Answered by montasim
olx24 asked this question in Q&A
Discussion options

You must be logged in to vote

Let’s say you're a developer and you want to switch branches to work on something else. The issue is you don’t want to make commits in uncompleted work, so you just want to get back to this point later. The solution here is the Git stash.

Git stash takes your modified tracked files and saves it on a stack of unfinished changes that you can reapply at any time. To go back to the work you can use the stash pop.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by olx24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants