0 votes
by
What is Git stash drop?

1 Answer

0 votes
by

Git ‘stash drop’ command is basically used to remove the stashed item. It will basically remove the last added stash item by default, and it can also remove a specific item if you include it as an argument.

I have provided an example below:

If you want to remove any particular stash item from the list of stashed items you can use the below commands:

git stash list: It will display the list of stashed items as follows:

stash@{0}: WIP on master: 049d080 added the index file

stash@{1}: WIP on master: c265351 Revert “added files”

stash@{2}: WIP on master: 13d80a5 added number to log

Related questions

0 votes
0 votes
0 votes
+1 vote
asked May 21, 2020 in Git by SakshiSharma
0 votes
+1 vote
asked Jan 3, 2022 in Bitbucket by Robindeniel
...