I find this to be annoying because I would like to quickly switch branches and do something and then switch back to what I was working on before. I realize I can stash and t
One way to make this easier is to use something like Legit. One of the commands I like from Legit is git switch:
$ git switch# Switches to branch. Stashes and restores unstaged changes.
Legit stores the stash with a description that follows a particular naming convention. That way, when you use git switch to return to the first branch, it can automatically unstash the changes saved for that branch.