Can we have such a functionality, let's call it git switch-for-humans
that will make me forget about stashing/switching/committing/amending/etc. (and choosing the right one of them every single time) once and forever:
- When I'm at branch A and I want to switch to whatever branch B I just do:
$ git switch-for-humans B
At this point my working tree whatever state it is in (with all the tracked/untracked/etc.files, just as it is) is magically stashed or saved at some storage specific for branch A - I get to branch B.
- I do any kind of switching
- At some point by calling "git switch-for-humans A" I arrive back to A and the working tree gets magically restored.
This saving/restoration works for every branch, w/o any additional actions from user's side.
Is there some known way to get such behavior from git?..