Stash with message
Stash only src/ with a descriptive name
git stash push -m 'wip: feature-x' -- src/
More git commands
-
git stash list && git stash apply stash@{2}List stashes and apply a specific one by index
-
git cherry-pick A^..BApply commits from A to B (inclusive) onto current branch
-
git blame -L 10,25 --date=short src/main.pyAnnotate lines 10–25 with author and date
-
git bisect start && git bisect bad HEAD && git bisect good v1.0Binary search through history to find the breaking commit
-
git diff --name-status main..feature/xList files added, modified, deleted between two branches