博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git stash
阅读量:7009 次
发布时间:2019-06-28

本文共 1123 字,大约阅读时间需要 3 分钟。

hot3.png

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>基于进度创建分支

 

 

转载于:https://my.oschina.net/u/563488/blog/884103

你可能感兴趣的文章
android-------- 强引用、软引用、弱引用、虚引用使用
查看>>
HTML标签marquee实现滚动效果
查看>>
html字符操作
查看>>
oracle函数
查看>>
百度贴吧爬虫1.0
查看>>
ant+jmeter接口批量执行测试用例
查看>>
Mongodb
查看>>
小规模低性能低流量网站设计原则
查看>>
POI之PPT-元素操纵
查看>>
python 将txt文件转换成excel
查看>>
程序员N容N耻
查看>>
C语言基础及指针⑨联合体与枚举
查看>>
Discuz截取字符串
查看>>
连接数据库操作
查看>>
nginx错误:13: Permission denied
查看>>
如何检查一个单向链表上是否有环?
查看>>
spring核心点总结
查看>>
解决:Determining IP Information for eth0...问题
查看>>
使用虚拟机安装 Linux 操作系统
查看>>
Spring mvc中@RequestMapping 6个基本用法小结
查看>>