CLion’s Git integration offers “smart checkout”, i.e. what I’ve been asking for, for ages: It automatically does the stash/checkout/apply-stash dance for you.