git stash

wakaie@TZ-IT-wakaie /code/tz $ git stash list 
stash@{0}: WIP on hotfix/1.2.21.19.patch.4_pnrExce: 3043d37 fix bug
stash@{1}: WIP on hotfix/1.2.21.19.patch.4.general: 2556f0f add dao-intl-client
stash@{2}: WIP on hotfix/1.2.21.19.patch.4.general: 701a30c add generalorder
stash@{3}: WIP on hotfix/1.2.21.19.patch.4_pnrExce: fd6f933 fix bug
git stash list [<options>]
git stash show [<stash>]
git stash drop [-q|--quiet] [<stash>]
git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
git stash branch <branchname> [<stash>]
git stash [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
	     [-u|--include-untracked] [-a|--all] [<message>]]
git stash clear
git stash create [<message>]
git stash store [-m|--message <message>] [-q|--quiet] <commit>

git stash: 备份当前的工做区的内容。同时,将当前的工做区内容保存到Git栈中。
git stash pop: pop会从最近的一个stash中读取内容并恢复。
git stash list: 显示Git栈内的全部备份。
git stash clear: 清空Git栈。git

git stash apply[--index] [<stash>] 不删除已恢复的进度,其余同git stash popapache

git stash drop[<stash>] 删除某一个进度,默认删除最新进度app

git stash clear删除全部进度ui

git stash branch <branchname> <stash>基于进度建立分支3d

相关文章
相关标签/搜索