in Technology by (1.9m points)

What is Git stash apply? How is it different from Git stash pop?

1 Answer

0 votes
by (1.9m points)
Both the commands are used to reapply your stashed changes and start working from where you had left.

In git stash apply command, the changes will be re-applied to your working copy and will also be kept in the stash. This command can be used when you want to apply the same stashed changes to multiple branches.

In git stash pop command, the changes are removed from the stash and are re-applied to the working copy.