Running the command line below will allow you to interactively select which hunks of change you want to stash.
git stash --staged -m "message explaining the stashed changes"
Sources: [1]
Published on March 31, 2023.
Application for screen casting on Linux
A digital laboratory notebook
A simple environment manager for toolbx