What is difference between git stash pop and git stash apply ?
What is difference between git stash pop and git stash apply ?
The key difference between git stash pop and git stash apply is that pop removes the stash after applying it, while apply leaves the stash in the list for possible later use.
Specifically:
git stash pop applies the stash and then removes it from the stash stack. It's equivalent to running git stash apply followed by git stash drop.
git stash apply applies the stash but leaves it in the stash list for later use. You can then optionally run git stash drop to remove it.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.