Stash one directory with a message
Stash only the changes in src/ under a clear name
git stash push -m 'wip: feature-x' -- src/
More git commands
-
git stash list && git stash apply stash@{2}List stashes, then apply one by its index
-
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