搜索
查看
编辑修改
首页
UNITY
NODEJS
PYTHON
AI
GIT
PHP
GO
CEF3
JAVA
HTML
CSS
搜索
小蓝xlanll
这个屌丝很懒,什么也没留下!
关注作者
热门标签
jquery
HTML
CSS
PHP
ASP
PYTHON
GO
AI
C
C++
C#
PHOTOSHOP
UNITY
iOS
android
vue
xml
爬虫
SEO
LINUX
WINDOWS
JAVA
MFC
CEF3
CAD
NODEJS
GIT
Pyppeteer
article
热门文章
1
PostgreSQL 14安装和配置_postgresql14
2
四元数和欧拉角转换_四元数转欧拉角公式
3
实习|基于SSM的实习管理系统设计与实现(源码+数据库+文档)_实习管理系统的数据库设计
4
ChatGPT 之 B2B 转化策略
5
axios 请求拦截器&响应拦截器_axios请求拦截器和响应拦截器
6
[面经] 5年前端 - 历时1个月收获7个offer
7
Day:007(3) | Python爬虫:高效数据抓取的编程技术(scrapy框架使用)
8
ubuntu虚拟机与windows之间实现复制粘贴功能_windows与ubuntu复制粘贴
9
Git学习笔记之Git安装、创建版本库以及远程仓库_git安装、创建版本库、版本控制、远程仓库、分支管理、标签管理、连接及使用、组
10
Jieba分词模式详解、词库的添加与删除、自定义词库失败的处理
当前位置:
article
> 正文
Git入门--rebase以及标签管理_使用git rebase的时候如果commit上有tag会怎么样
作者:小蓝xlanll | 2024-04-14 19:05:21
赞
踩
使用git rebase的时候如果commit上有tag会怎么样
rebase操作可以把本地未push的分叉提交历史整理成直线;
rebase的目的是使得我们在查看历史提交的变化时更容易,因为分叉的提交需要三方对比
为什么要引入标签
请把上周一的那个版本打包发布,commit号是6a5819e…”
“一串乱七八糟的数字不好找!”
如果换一个办法:
“请把上周一的那个版本打包发布,版本号是v1.2”
“好的,按照tag v1.2查找commit就行!”
所以,tag就是一个让人容易记住的有意义的名字,它跟某个commit绑在一起
创建标签
小结
命令git tag 用于新建一个标签,默认为HEAD,也可以指定一个commit id;
命令git tag -a -m "blablabla…"可以指定标签信息;
命令git tag可以查看所有标签。
标签操作
小结
命令git push origin 可以推送一个本地标签;
命令git push origin --tags可以推送全部未推送过的本地标签;
命令git tag -d 可以删除一个本地标签;
命令git push origin :refs/tags/可以删除一个远程标签
声明:
本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:
https://www.wpsshop.cn/w/小蓝xlanll/article/detail/423655
推荐阅读
article
git
pull
时 配置适合自己的
合并
策略
git
config
pull
.
rebase
_
git
...
hint:
git
config
pull
.
rebase
false
# merge (the default stra...
赞
踩
article
git
pull
错误_
git
config
pull
.
rebase
true #
rebase
...
git
pull
出错_
git
config
pull
.
rebase
true #
rebase
git
config
pu...
赞
踩
article
git
教程:
git
config
pull
.
rebase
true
命令
的含义...
使用
rebase
来整合远程分支的好处是可以保持提交历史的线性,使得分支合并后的历史更加整洁和易于查看。但请注意,如果...
赞
踩
article
git
pull
问题
git
config
pull
.
rebase
false...
You can replace "
git
config
" with "
git
config
--global" to s...
赞
踩
article
g
it
push 报错 提示
pull
,
pull
失败_
hint
:
g
it
confi
g
pull
.re...
【代码】
g
it
push 报错 提示
pull
,
pull
失败。_
hint
:
g
it
confi
g
pull
.
rebase
...
赞
踩
article
git
config
pull
.
rebase
false_
git
config
pull
.rebas...
需要注意的是,如果在执行
git
pull
命令时指定了 --
rebase
选项,则 Git 会优先使用
rebase
...
赞
踩
article
git
修改远程分支名称,以及遇到的问题
git
config
pull
.
rebase
_
git
con...
1
git
branch -m 旧分支名 新分支名2
git
push --delete origin 旧分支名3 gi...
赞
踩
article
git
merge
与
git
rebase
详解_
git
merge
rebase
...
git
merge
与
git
rebase
详解_
git
merge
rebase
git
merge
rebase
...
赞
踩
article
4-
Docker
命令
之
docker
commit
...
4-
Docker
命令
之
docker
commit
_
docker
commit
docker
commit
...
赞
踩
article
commit
报错——
husky
>
commit
-
msg
hook
failed
(add --no...
husky
>
commit
-
msg
(node v12.18.3)⧗ input: 解决
husky
的bug✖ subj...
赞
踩
article
Tortoisegit
提交
代码步骤总结_
tortoisegit
commit
&
push
...
Turtoisegit
提交
代码步骤总结_
tortoisegit
commit
&
push
tortoisegit
commi...
赞
踩
article
TortoiseGit
工具使用_
tortoisegit
commit
user
info...
TortoiseGit
clone、
commit
、push、pull3.1 克隆项目打开资源管理器(我的电脑/计算机),...
赞
踩
article
git
日常
使用
合集_
git
clone
commit
...
实现自己的仓库与别人的同步刚入职遇到一个项目,老大为了善用工具,提出大家
使用
git
hub,本以为fork之后就会和原项目...
赞
踩
article
【随笔】
Git
高级篇
--
提交
的技巧(上)
rebase
&
commit
--
amend
(十八...
【随笔】
Git
高级篇
--
提交
的技巧(上)
rebase
&
commit
--
amend
(十八) ...
赞
踩
article
通过
--
amend
和
rebase
修改
git
commit
提交
的注释信息_
rebase
的时候
git
...
简述开发过程中,可能因为某些原因需要
修改
已经
commit
的内容。最近一次
提交
执行
git
commit
--
amend
,进...
赞
踩
article
git
rebase
和
git
commit
--
amend
合并
多个
commit
提交异同_
git
...
关于
git
rebase
合并
多个(以3个
commit
为例)
commit
提交1.
git
rebase
-i HEAD~3...
赞
踩
article
git
提交
代码
报错Git:
husky
>
pre
-
commit
_
git
husky
pre
-com...
这个问题是因为当你在终端输入
git
commit
-m “XXX”,
提交
代码
的时候,
pre
-
commit
(客户端)钩子,...
赞
踩
article
git
commit
之后如何
撤销
_
git
撤回
commit
...
git
一般正常的提交的操作为:
git
add . 将本地的所有文件改变添加至暂存区
git
commit
-m "fix(...
赞
踩
article
执行
git
commit
后
如何
撤销
_
commit
后
如何
取消...
执行
git
commit
后
如何
撤销
_
commit
后
如何
取消
commit
后
如何
取消
git
&n...
赞
踩
article
[
eclipse
中使用Git插件] 008 - git操作
pull
、
merge
、
stash
、comm...
写在前面:看标题其实还有001-007之类,本来准备写详细的类似教程一样的东东,但是懒了且时间有限(以后或许会补吧),所...
赞
踩
相关标签
git
docker
容器
github
gitea
笔记
amend
rebase
HEAD
commit
vim命令
git rebase 合并提交
git rebase 合并多个commit
git commit --amend用法