0 votes
in Git by
What is git stash drop?

1 Answer

0 votes
by

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

Now give an example.

If you want to remove a 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 like:

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

stash@{1}: WIP on master: c264051 Revert “added file_size”

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

If you want to remove an item named stash@{0} use command git stash drop stash@{0}.

Related questions

0 votes
+1 vote
0 votes
asked Sep 17, 2021 in Interstellar Git by SakshiSharma
0 votes
0 votes
asked Nov 27, 2019 by rajeshsharma
...