Answers for "delete change from stash"

9

remove stash files git

# remove all stashed files at once:
git stash clear
# remove a single stashed state from the stash list
git stash drop 'stash@{index}'
Posted by: Guest on February-04-2021
0

delete a particular stash

git stash drop            # drop top hash, stash@{0}
git stash drop stash@{n}  # drop specific stash - see git stash list

#git stash drop takes no parameter - which drops the top stash - or 
#a stash reference which looks like: stash@{n} which n nominates 
#which stash to drop. You can't pass a commit id to git stash drop
Posted by: Guest on September-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language