Results: 102
Drops the specified stash
git stash drop stash@{0}
Applies the most recent stash & deletes the stash
git stash pop
Takes stashed changes back (with specified id)
git stash apply stash@{0}
does not delete the stash
Shows all the stashes with unique IDs
git stash list
Stashes changes with name
worked on add function
git stash save "worked on add function"
Stashes changes without name
git stash
Stashes changes with name
worked on add function
git stash save "worked on add function"
Shows all the stashes with unique IDs
git 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 stash
git stash pop
Drops the specified stash
git stash drop stash@{0}
Deletes all stashes
git 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 back
Deletes all commits after the specified commit but does not change source code (keeps files unstaged)
git reset i4ol54f  /  git reset --mixed i4ol54f
Deletes all commits after the specified commit but does not change source code (keeps files staged)
git reset --soft i4ol54f
Creates a new commit based on the specified commit
git cherry-pick 720192c
Cherry picking in Git means to choose a commit from one branch and apply it onto another
Results: 102