Git temporary modification-git stash, git temporary-gitstash
Temporary modifications to track files (excluding untrack files, newly added files are still visible after stash, but newly added files cannot be restored through stash pop after being modified again after stash -- becauseThis command does not save files that have not been tracked)
Git stash
Save all modifications (including the newly added files, that is, they are restored to the previous commit state. Newly Added files are invisible after stash and can only be restored after stash pop, but cannot add description message)
Git stash-a or -- all
Save all modifications (same as-a, but you can add message information to distinguish stash images,It is best to use this command)
Git stash save-a "some comment" or -- all
Restore the latest stash image (new files added after stash will not be deleted)
Git stash pop
View All stash Images
Git stash list
Delete the newly added stash Image
Git stash drop
Clear all stash Images
Git stash clean