Git stash save “Save message” : When executing the storage, add a note for easy search. Only git Stash save can also be done, but it is not easy to identify when searching.

(2) Git Stash list: See what stash stores areIf you want to display other stash, add stash@{$num}. For example, the second git stash show stash@{1} starts at 0

If you want to display the other stash, run the git stash show stash@{$num} -p command. For example, run the git stash show stash@{1} -p command

The first stash is used by default, stash@{0}. If you want to use another stash, stash@{$num} is used. git stash apply stash@{1}

Delete the corresponding stash from the cache stack and apply the corresponding change to the current working directory. The default is the first stash, namely stash@{0}. If you want to apply and delete other stash files, run the following command: Git stash pop stash@{$num}, for example, apply and delete the second one: git stash pop stash@{1}

Git stash drop Stash @{num} : Drop stash@{num} from the list

Git Stash clear: Remove all cached stash files

————————–end————————-

If it helps, please like 👍

  • [67.5]

————————–end————————-