wakaie@TZ-IT-wakaie /code/tz $ git stash list stash@{0}: WIP on hotfix/1.2.21.19.patch.4_pnrExce: 3043d37 fix bugstash@{1}: WIP on hotfix/1.2.21.19.patch.4.general: 2556f0f add dao-intl-clientstash@{2}: WIP on hotfix/1.2.21.19.patch.4.general: 701a30c add generalorderstash@{3}: WIP on hotfix/1.2.21.19.patch.4_pnrExce: fd6f933 fix bug
git stash list []git stash show [ ]git stash drop [-q|--quiet] [ ]git stash ( pop | apply ) [--index] [-q|--quiet] [ ]git stash branch [ ]git stash [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] [-u|--include-untracked] [-a|--all] [ ]]git stash cleargit stash create [ ]git stash store [-m|--message ] [-q|--quiet]
git stash: 备份当前的工作区的内容。同时,将当前的工作区内容保存到Git栈中。
git stash pop: pop会从最近的一个stash中读取内容并恢复。 git stash list: 显示Git栈内的所有备份。 git stash clear: 清空Git栈。git stash apply[--index] [<stash>] 不删除已恢复的进度,其他同git stash pop
git stash drop[<stash>] 删除某一个进度,默认删除最新进度
git stash clear删除所有进度
git stash branch <branchname> <stash>基于进度创建分支