Does Git's stash pop command merge workspaces and staging areas?

consider such a scenario:

  1. A file and B file have been modified locally
  2. git add A
  3. git stash
  4. git stash pop

found that file A returned to the workspace from the staging area.

what is the reason for this? Would you like to explain the principle of git stash ? Why is it designed like this?

Git
Sep.09,2021

stash has a very practical application scenario.
for example, if you are updating a new version of the iterative website, the code has been modified and the code has not been temporarily saved. Suddenly found an emergency bug online.
git stash can save your current modified code and enter the clean commit branch before you modified it.
at this time, you can concentrate on bug, and execute git stash pop after the commit submission has been processed.
at this point working directory = bug the modified code saved before the submitted commit + .

Files do return to the workspace after

pop. You can execute git stash pop-- index so that the files that are in the staging area will still be in the staging area.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea7ddd-47c62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea7ddd-47c62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?