git-使用staf暂存分支
使用staf暂存分支index.less写了@media screen and (max-width:1360px){.nav-0518 > div {width: 1200px;margin: 0 auto;}}保存暂存区,新建分支写文字:PS D:\dnmp\www\www.abc.com> git stashwarning: LF will be replaced by CRLF in public/css/index.css.The file will have its original line endings in your working directory.Saved working directory and index state WIP on html: c48a074 goods/index.html 修改文字‘政策PS D:\dnmp\www\www.abc.com> git stash liststash@{0}: WIP on html: c48a074 goods/index.html 修改文字‘政策新分支写了东西,提交了。切换回来发现东西不在了PS D:\dnmp\www\www.abc.com> git checkout -b newhtmlSwitched to a new branch 'newhtml'M public/css/index.cssM public/css/index.lessPS D:\dnmp\www\www.abc.com> git add .warning: LF will be replaced by CRLF in public/css/index.css.The file will have its original line endings in your working directory.PS D:\dnmp\www\www.abc.com> git commit -m "index.less,index.css 缩小版样式修改开始"[newhtml 0f8909b] index.less,index.css 缩小版样式修改开始1 file changed, 2 insertions(+), 1 deletion(-)PS D:\dnmp\www\www.abc.com> git checkout masterSwitched to branch 'master'Your branch is up to date with 'origin/master'.PS D:\dnmp\www\www.abc.com> git checkout htmlSwitched to branch 'html'gitstashpop就回来了:PS D:\dnmp\www\www.abc.com> git stash popOn branch htmlChanges not staged for commit:(use "git add <file>..." to update what will be committed)(use "git checkout -- <file>..." to discard changes in working directory)modified: public/css/index.cssmodified: public/css/index.lessno changes added to commit (use "git add" and/or "git commit -a")Dropped refs/stash@{0} (f2e1dfdec076a7b0a9ae85c6e06b437ce5294aa4)
git-使用staf暂存分支相关推荐
- 暂存分支 Git stash
当程序出现bug时,你就需要新建一个临时分支来修复,修复后,合并分支,然后将临时分支删除,但是你当前 devThree 还在子分支上进行的工作还没有提交,而且只开发到一半,还不能提交.但是bug需要紧 ...
- Git 工作区、暂存区和版本库
基本概念 我们先来理解下Git 工作区.暂存区和版本库概念 工作区:就是你在电脑里能看到的目录 暂存区:英文叫stage, 或index.一般存放在 ".git目录下" 下的ind ...
- Git复习(九)之理解git工作区和暂存区
前言 Git和其他版本控制系统如SVN的一个不同之处就是有暂存区的概念. 版本库 在工作区目录中有一个.git文件,这个其实不是工作区而是Git的版本库 版本库中包含两个部分,一个是暂存区index/ ...
- git 取消 所有暂存_Git版本管理完全指南—学好Git一文足矣
开心?一下 image.png 第一部分 命令行 1.分支操作 1. git branch 创建分支2. git checkout -b 创建并切换到新建的分支上3. git checkout 切换分 ...
- Git学习笔记之三:Git 工作区、暂存区和版本库
基本概念我们先来理解下Git 工作区.暂存区和版本库概念 工作区:就是你在电脑里能看到的目录. 暂存区:英文叫stage, 或index.一般存放在 ".git目录下" 下的ind ...
- git工作区、暂存区和仓库区
git工作区.暂存区和仓库区 工作区 对于添加.修改.删除文件的操作,都发生在工作区中 暂存区 暂存区指将工作区中的操作完成小阶段的存储,是版本库的一部分 仓库区 仓库区表示个人开发的一个小阶段的完成 ...
- git 工作区和暂存区
Git和其他版本控制系统如SVN的一个不同之处就是有暂存区的概念. 先来看名词解释. 工作区(Working Directory) 就是你在电脑里能看到的目录,比如我的learngit文件夹就是一个工 ...
- git如何查看缓存区文件内容_详解Git工作区、暂存区、历史记录区以及git reset、git revert、git checkout等撤销命令的区别...
一.可以将git简单的分为三个区域 1.工作区(working directory) 2.暂缓区(stage index) 3.历史记录区(history) 如图: 其中git ...
- git工作区和暂存区(4)
Git和其他版本控制系统比如SVN的一个不同之处就是有暂存区的概念. 先来看名词解释 工作区(Working Directory) 就是你在电脑能看到的目录,比如我的learngit文件夹就是一个工作 ...
最新文章
- 网站项目必备——12款白富美型 jQuery 图片轮播插件
- Python编程基础:第十五节 二维列表2D Lists
- 【C++深度剖析教程7】C++之类中的函数重载
- web前端开发论文写作_外语论文文献引言格式—MLA Style
- servlet destroy 示例_Servlet中的Listener的应用
- 机器学习2/100天-简单线性回归
- 通过iOS 9 SFSafariViewController提供完整的Web浏览体验
- 影响局域网速度的因素
- 十天冲刺---Day5
- iOS 视频播放器 VLC的集成和基本使用
- android英语阅读识别库,基于Android的大学英语阅读学习平台研究
- Spring Boot (二)集成Mybatis、Druid
- 实用技巧:六招教你去掉图片上的文字
- 时间序列数据、自协方差函数、自相关函数与平稳性
- 4篇cvpr2021 轨迹预测论文
- Linux基础第一篇
- Oracle 同义词synonym创建和删除
- 百度推荐引擎及其背后的大数据架构揭秘
- 低成本的ddos防御方案
- 【scrapy】Ubuntu安装scrapy报错:fatal error: Python.h: No such file or directory
热门文章
- navicat显示中文为问号
- 设计测试用例之 一个系统,多个摄像头,抓拍车牌,识别车牌,上传网上,网上展示
- c语言mon什么意思,c'mon是什么意思啊 – 手机爱问
- PyTorch强化:01.PyTorch 数据加载和处理
- SDF: Software-defined flash for web-scale internet storage systems
- 极大似然估计法的理解和用途
- opencv 视频中画矩形
- python numpy.arry, pytorch.Tensor及原生list相互转换
- 【免费赠送源码】Springboot理发店线上预约排队的设计与实现 7vsz2计算机毕业设计-课程设计-期末作业-毕设程序代做
- 解决!只有IE64位浏览器能上网,其他软件都上不了网