• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
by
Q:
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
0 votes
0 votes
+1 vote
asked May 21, 2020 in Git by SakshiSharma
0 votes
+1 vote
asked Jan 3 in Bitbucket by Robindeniel
...