by Sai gowtham

How to delete a stash in Git

In this tutorial, we are going to learn about how to delete a stash in git with the help of examples.

Deleting All Stashes

To delete all stashes in git, we need to run the git stash command followed by the clear option.

Example:

git stash clear

Note: Once you run the above command it is impossible to recover the stash entries.

Deleting a Particular Stash

  1. Run the below command to get the list of available stashes in your repository.
git stash list
  1. Choose a stash index you want to delete.

  2. Now, run the git stash command followed by the drop option and your stash index.

git stash drop stash@{2}

# stash@{index-number}

Note: If a stash index is not provided it will delete a recently created stash that is stash@{0}.

Css Tutorials & Demos

How rotate an image continuously in CSS

In this demo, we are going to learn about how to rotate an image continuously using the css animations.

How to create a Instagram login Page

In this demo, i will show you how to create a instagram login page using html and css.

How to create a pulse animation in CSS

In this demo, i will show you how to create a pulse animation using css.

Creating a snowfall animation using css and JavaScript

In this demo, i will show you how to create a snow fall animation using css and JavaScript.

Top Udemy Courses

JavaScript - The Complete Guide 2022 (Beginner + Advanced)
JavaScript - The Complete Guide 2022 (Beginner + Advanced)
116,648 students enrolled
52 hours of video content
$14.99 FROM UDEMY
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
631,582 students enrolled
49 hours of video content
$24.99 FROM UDEMY
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
203,937 students enrolled
31.5 hours of video content
$14.99 FROM UDEMY