git stash和git stash pop
来源:互联网 发布:linux服务器root密码 编辑:程序博客网 时间:2024/05/22 16:59
$Git stash 可用来暂存当前正在进行的工作, 比如想pull 最新代码, 又不想加新commit, 或者另外一种情况,为了fix 一个紧急的bug, 先stash, 使返回到自己上一个commit, 改完bug之后再stash pop, 继续原来的工作。
基础命令:
$git stash
$do some work
$git stash pop
进阶:
当你多次使用’git stash’命令后,你的栈里将充满了未提交的代码,这时候你会对将哪个版本应用回来有些困惑,’git stash list’命令可以将当前的Git栈信息打印出来,你只需要将找到对应的版本号,例如使用’git stash apply stash@{1}’就可以将你指定版本号为stash@{1}的工作取出来,当你将所有的栈都应用回来的时候,可以使用’git stash clear’来将栈清空
0 0
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- git stash和git stash pop
- Git stash和stash pop命令
- Git 分支管理-git stash 和git stash pop
- git stash和git stash pop有什么区别
- git stash pop 和 git stash apply的区别
- Git stash and Git stash pop detial
- git stash pop 与 git stash apply git stash apply && git stash drop.
- php5.3.28安装mbstring扩展
- HDU 3663 精确覆盖
- tomcat开启与配置ssi(支持动态引入html)
- 内核调试神器SystemTap — 更多功能与原理(三)
- HDU 1312 Red and Black(简单BFS)
- git stash和git stash pop
- oracle 执行大量的sql语句
- Design Pattern 设计模式 Decorator 装饰者模式
- web UI工程师必读的一篇文档,写的非常好
- 关于C语言等高级语言能不能直接控制硬件的问题
- quick-cocos2d-x 在 Windows 下的编译环境
- 安装scipy和numpy还有matplotlib
- 台媒:鸿海将代工苹果5.5寸iPhone
- Li Na really made a big upset,