git stash 贮藏

# 贮藏
git stash
# 贮藏时添加 message
git stash save "message"
# 贮藏时包含所有修改,同 --all
git stash -a
# 贮藏时包含未暂存的修改,同 --include-untracked
git stash -u
# 出栈第一个贮藏,应用到工作目录
git stash pop
# 应用贮藏内容到工作目录
git stash apply
# 贮藏堆栈列表
git stash list
# 丢弃贮藏 stash@{0}
git stash drop stash@{0}
# 清空 stash
git stash clear
# 查看贮藏的 diff
git stash show [stash@{0}]
# 查看贮藏的全部 diff,同 --patch
git stash show -p
# 从贮藏创建新分支
git stash branch new_branch_name