×
Clear all filters including search bar
Valeri Tandilashvili's Git Notes
git stash drop stash@{0}
git stash pop
git stash apply stash@{0}
does not delete the stash
git stash list
worked 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 clear
git 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 i4ol54f
git reset --soft i4ol54f
git cherry-pick 720192c
Cherry picking in Git means to choose a commit from one branch and apply it onto another