git switch <branch> git restore <file>

Thanks the ever-loving heavens (git 2.23)

https://twitter.com/mislav/status/1206937217194741760?s=20