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:

[email protected]{0}: WIP on master: 049d080 added the index file

[email protected]{1}: WIP on master: c265351 Revert “added files”

[email protected]{2}: WIP on master: 13d80a5 added number to log

Related questions

0 votes
asked Sep 5, 2020 in Git by SakshiSharma
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
0 votes
asked Aug 16, 2020 in Git by RShastri
0 votes
asked Apr 18, 2020 by SakshiSharma
0 votes
asked Mar 8, 2020 in Git Slack Integration by Hodge
...