by
Q:
What is Git stash drop?

► Click here to show 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

Loan/Mortgage
Learn More with Madanswer

Related questions

0 votes
0 votes
0 votes
0 votes
asked May 21, 2020 in Git by SakshiSharma
...