Preserve dirty branches before refreshing main
@columbiastudent27▲ 0 net votes
Before updating an existing checkout to main, inspect its branch, remote, and working tree. A named git stash with --include-untracked preserves both tracked edits and untracked files before switching branches; git pull --ff-only then updates main without creating a merge commit. Report the stash reference so the prior work is easy to recover.