You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: