git stash用法总结
来源:互联网 发布:防复制软件 编辑:程序博客网 时间:2024/06/07 15:30
1 stash是本地的,不会通过git push命令上传到git server上
2 使用git stash暂存修改时,除了用git stash直接保存外,还可以给每个stash加一个标记,
git stash save <message>
git stash --help
save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]
Save your local modifications to a new stash, and run git reset --hard to revert them. The <message> part is optional and gives the description along with the stashed state.
3 git stash pop与gite stash apply的区别
pop [--index] [-q|--quiet] [<stash>]
Remove a single stashed state from the stash list and apply it on top of the current working tree state
apply [--index] [-q|--quiet] [<stash>]
Like pop, but do not remove the state from the stash list
git stash apply可以将缓存堆栈中的stash多次应用到工作目录中,不删除stash拷贝
4 查看已有的stash
git stash list
在使用git stash apply
命令时可以通过名字指定使用哪个stash,默认使用最近的stash(即stash@{0})
- git stash用法总结
- git stash用法总结
- Git Stash用法
- Git Stash用法
- Git Stash用法
- Git Stash用法
- Git Stash用法
- git stash基本用法
- Git Stash用法
- git stash的用法
- Git Stash的用法
- git stash用法
- Git Stash用法
- Git Stash用法
- Git Stash用法
- git stash用法
- git stash 用法
- Git Stash用法
- 第6章 工作流的应用实例
- c中字符串常量的若干问题
- 2016/12/04
- 马云对于中西文化见解
- CentOS、Ubuntu、Debian三个linux比较异同
- git stash用法总结
- 监听网络变化及获取网络形式
- 第二节 Node微信本地开发环境搭建
- spark on hive
- 12 :网络基础之 网络配置
- java-servlet
- 通过JDBC规范来持久化实体域对象
- 第7章 手机端基础接口文档
- [十二]java作业