Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Stash Commands #17

Open
tspeed90 opened this issue Mar 17, 2018 · 1 comment
Open

Git Stash Commands #17

tspeed90 opened this issue Mar 17, 2018 · 1 comment

Comments

@tspeed90
Copy link
Member

I've had a few conversations with various teammates about the difference between "git stash pop" and "git stash apply" but was still fairly confused by what each does. This article clears it up a bit & explains other git stash commands you could use.

TL;DR: Git stash is like a stack. You can stash multiple things and the last bit you stashed is at the top of the stack. When you use "git stash pop" it will apply your most recent stash back into your code and DELETE it from the stack whereas "git stash apply" will apply your most recent stash and KEEP it in the stack.

@helenzhou6
Copy link

Woww good to know! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants