×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
git stash cleargit stash drop stash@{0}git stash popgit stash apply stash@{0}
does not delete the stashgit stash listworked on add function git stash save "worked on add function"git stash
Stashes changes with name worked on add function git stash save "worked on add function"
Shows all the stashes with unique IDsgit stash list
Takes stashed changes back (does not delete the stash after applying)git stash apply stash@{0}
Applies the most recent stash & deletes the stashgit stash pop
Drops the specified stashgit stash drop stash@{0}
Deletes all stashesgit stash cleargit checkout r48ikj2 can be used to recover deleted commits using the following commit (by default, the reflog expiration date is set to 90 days)git reset --hard k829hkw
In this example k829hkw commit is followed by r48ikj2 commit and by running the checkout command we want to get the deleted commit backgit reset i4ol54f / git reset --mixed i4ol54fgit reset --soft i4ol54f