@joxean in git I’d just use a branch for this, and use commits.
You can checkout different branches quickly to switch between different sets of commits you make (e.g. feature branches).
This SO top answer agrees: https://stackoverflow.com/questions/3656351/git-for-perforce-users
You can use git stash too: https://git-scm.com/docs/git-stash
It has a “stack” but you can apply a stash out of order.
I only use stash as a last resort when I get in a tangle, not as a way to store anything; no tips on workflow.