Apply a specific stash
List stashes, then apply one by its index
git stash list && git stash apply stash@{2}
More git commands
-
git cherry-pick A^..BApply commits from A to B, including both, onto the current branch
-
git blame -L 10,25 --date=short src/main.pyShow the author and date for lines 10-25
-
git bisect start && git bisect bad HEAD && git bisect good v1.0Run a binary search between v1.0 and HEAD to find the breaking commit
-
git diff --name-status main..feature/xList added, modified and deleted files between main and feature/x
-
git log --oneline --graph --decorate --allPrint an ASCII graph of the full history across all branches