git 携带当前修改到新分支

分支 当前 修改 git 携带 本地 远程 编程进阶笔记
发布日期 2022-09-27 更新日期 2022-09-27 阅读次数 57 文章字数 166

先暂存本地修改

git stash

接下来,切出远程分支

git checkout -b job(本地分支)origin/job (远程分支)

接下来,从本地暂存弹出本地文件

git stash pop

其他:

  • git branch 查看当前分支
  • git branch -a 查看所有分支
  • git checkout master 切换到master分支
  • git checkout -b 本地分支 远程分支

文章作者: 朱丰华

文章链接: https://smart.52dixiaowo.com/blog/post-98.html

版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。

分支 当前 修改 git 携带 本地 远程

发表评论

相关推荐
朱丰华   |   3周前   |   对象 · 属性 · 反射 · js

js 对象反射 Reflect

38    评论    点赞
朱丰华   |   10个月前   |   git

git从缓存中移除数据git rm --cached

464    评论    点赞
朱丰华   |   1年前   |   页面 · 监听

iframe子父页面信息传递与监听

482    评论    点赞
朱丰华   |   1年前   |   linux · upx

Linux下安装UPX

520    评论    点赞
朱丰华   |   1年前   |   linux

linux保持后台进程不被关闭nohup &

293    评论    点赞
朱丰华   |   1年前   |   git

git push -u参数是什么意思?--set-upstream

315    评论    点赞
朱丰华   |   1年前   |   git · hub · 仓库

go克隆并引用github仓库

177    评论    点赞
朱丰华   |   1年前   |   请求 · 一个

ab测压命令,apache测压工具

218    评论    点赞
朱丰华   |   1年前   |   php · 缓存 · opcache

php 加速、提高并发opcache

253    评论    点赞
朱丰华   |   1年前   |   go · gopath

Go自定义包并安装(GOPATH)

146    评论    点赞
朱丰华   |   1年前   |   正则 · 表达

正则表达式,实现if...then...else

154    评论    点赞
朱丰华   |   1年前   |   变量 · mysql · sql · 用户

MySQL用户自定义变量

125    评论    点赞
朱丰华   |   1年前   |   sed · 文件

Shell 指定行处理head、tail、sed

181    评论    点赞
朱丰华   |   1年前   |   html · <

html浏览器当前tab标签切换时触发监听

130    评论    点赞
朱丰华   |   1年前   |   javascript · 滚动 · html

Javascript 显示当前滚动条滚动的百分比

97    评论    点赞
朱丰华   |   1年前   |   文件 · linux · 修改

linux文件的三个时间atime,mtime,ctime分别表示什么?

327    评论    点赞
朱丰华   |   1年前   |   linux · 文件

linux递归统计文件夹大小、du命令_Linux du命令:查看文件夹和文件的磁盘占用情况

237    评论    点赞
朱丰华   |   1年前   |   git · add · 文件

git add -A 和 git add . 的区别

134    评论    点赞
朱丰华   |   1年前   |   php

windows下编写、编译php扩展

197    评论    点赞
朱丰华   |   1年前   |   linux · php

linux下编写、编译php扩展

175    评论    点赞
{{item.author_name}}   |   {{new Date(item.date*1000).log()}}   |   {{it}} ·

{{item.title}}

{{item.uv}}    评论    点赞