How to delete Stash from the stash list

0 votes

Hi Team,

I have saved one Stash in Git. Now I don't need the Stash. How can I drop the Stash?

Nov 20, 2020 in Git & GitHub by akhtar
• 38,260 points
5,292 views

1 answer to this question.

0 votes

Hi@akhtar,

Before you drop the Stash, you can run the stash list command to see all the stash. After that, you can drop a particular stash using the below command.

$ git stash drop stash@{0}
answered Nov 20, 2020 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

How to get the files from the local desktop to the local repository?

Hey @Ali, Follow these steps to transfer ...READ MORE

answered Dec 17, 2018 in Git & GitHub by Arohi
784 views
0 votes
1 answer

How to list all the saved stashes in Git?

Hi@akhtar, In Git, the stash operation takes your ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,460 points
646 views
0 votes
1 answer

How to stash untracked files of the current working directory in Git?

Hi@akhtar, In order to stash untracked files, add ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,460 points
16,082 views
0 votes
1 answer

How to delete all the Git stashes in the stack?

Hi@akhtar, If you want to delete all the ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,460 points
1,174 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,058 views
+2 votes
1 answer
0 votes
1 answer

How to clone seperate folder individually rather than the whole repository from GitHub?

Hi@akhtar, I don't think you can do that ...READ MORE

answered Aug 27, 2020 in Git & GitHub by MD
• 95,460 points
673 views
+1 vote
1 answer

How to remove untracked files from the current Git working tree?

Hi@akhtar, If you have thousands of file then ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
1,255 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP