当前位置: 首页 > news >正文

做中国旅游网站的目的与必要性百度竞价推广方案

做中国旅游网站的目的与必要性,百度竞价推广方案,电商网站建设包括哪些方面,免费的建设网站软件下载在 Git 中,标签 tag 是指向某个 commit 的指针(所以创建和删除都很快)。Git 有 commit id 了,为什么还要有 tag?commit id 是一串无规律的数字,不好记;而 tag 是我们自定义的,例如我…

在 Git 中,标签 tag 是指向某个 commit 的指针(所以创建和删除都很快)。Git 有 commit id 了,为什么还要有 tag?commit id 是一串无规律的数字,不好记;而 tag 是我们自定义的,例如我们可以命名为 v1.2

所以 tag 就是一个让人容易记住的有意义的名字,它跟某个 commit 绑在一起。

创建标签

在 Git 中创建标签非常简单,首先切换到要打标签的分支上:

$ git checkout master

然后,敲命令 git tag <name> ​就可以打一个新标签:

$ git tag v1.0

默认标签是打在最新提交的 commit 上的。如果想要打在某个 commit id 上,指定 commit id 即可:

$ git tag v0.9 1794212

可以用命令 git tag ​查看所有标签:

$ git tag
v0.9
v1.0

注意,标签不是按时间顺序列出,而是按字母排序的。可以用 git show <tagname> ​查看标签信息:

$ git show v0.9
commit 17942124f48557a93541974769ba1187321b8133 (tag: v0.9, bug)
Author: peterjxl <peterjxl@qq.com>
Date:   Sat Jan 14 20:06:01 2023 +0800fix bugdiff --git a/3-branch/branch.txt b/3-branch/branch.txt
index b7edfda..42c8f36 100644
--- a/3-branch/branch.txt
+++ b/3-branch/branch.txt
@@ -1,3 +1,3 @@Creating a new branch is quick and simpletest no fast forward
-test
+test cherry-pick

还可以创建带有说明的标签,用 -a ​指定标签名,-m ​指定说明文字:

$ git tag -a v0.1 -m "version 0.1 released" 1094adb

再次用 git show <tagname>​,可以看到说明文字:

$ git show v0.1
tag v0.1
Tagger: peterjxl <peterjxl@qq.com>
Date:   Sat Jan 14 20:50:31 2023 +0800version 0.1 releasedcommit abf2051bd989d0b129066bff3700a019665469ce (tag: v0.1)
Author: peterjxl <peterjxl@qq.com>
Date:   Wed Jan 11 22:50:39 2023 +0800add diff and patch hello.txtdiff --git a/1-diffAndPath/hello.txt b/1-diffAndPath/hello.txt
new file mode 100644
index 0000000..9bef518
--- /dev/null
+++ b/1-diffAndPath/hello.txt
@@ -0,0 +1,2 @@
+This is hello file
+Welcome to diff

之前说的第一种是轻量标签(lightweight),第二种带说明的就是附注标签(annotated)。

轻量标签很像一个不会改变的分支——它只是某个特定提交的引用。

而附注标签是存储在 Git 数据库中的一个完整对象, 它们是可以被校验的,其中包含打标签者的名字、电子邮件地址、日期时间, 此外还有一个标签信息,并且可以使用 GNU Privacy Guard (GPG)签名并验证。 通常会建议创建附注标签,这样你可以拥有以上所有信息。但是如果你只是想用一个临时的标签, 或者因为某些原因不想要保存这些信息,那么也可以用轻量标签。

标签总是和某个 commit 挂钩。如果这个 commit 既出现在 master 分支,又出现在 dev 分支,那么在这两个分支上都可以看到这个标签。

删除标签

如果标签打错了,也可以删除:

$ git tag -d v0.1
Deleted tag 'v0.1' (was 361b94d)

因为创建的标签都只存储在本地,不会自动推送到远程。所以,打错的标签可以在本地安全删除。

推送标签

如果要推送某个标签到远程,使用命令 git push origin <tagname>​:

$ git push gitee v1.0
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.4]
To gitee.com:peterjxl/LearnGit.git* [new tag]         v1.0 -> v1.0

或者,一次性推送全部尚未推送到远程的本地标签:

$ git push gitee --tags
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.4]
To gitee.com:peterjxl/LearnGit.git* [new tag]         v0.9 -> v0.9

如果标签已经推送到远程,要删除远程标签就麻烦一点,先从本地删除:

$ git tag -d v0.9

然后,从远程删除。删除命令也是 push,但是格式如下:

$ git push origin :refs/tags/v0.9

第二种更直观的删除远程标签的方式是:

$ git push origin --delete <tagname>

要看看是否真的从远程库删除了标签,可以登录远程仓库查看。

查找标签

你也可以按照特定的模式查找标签。 例如,Git 自身的源代码仓库包含标签的数量超过 500 个。 如果只对 1.8.5 系列感兴趣,可以运行:

$ git tag -l "v1.8.5*"
v1.8.5
v1.8.5-rc0
v1.8.5-rc1
v1.8.5-rc2
v1.8.5-rc3
v1.8.5.1
v1.8.5.2
v1.8.5.3
v1.8.5.4
v1.8.5.5

小结

常用的 git tag 命令如下:

  • git tag tagName 创建标签
  • git tag 创建标签
  • 命令 git push origin <tagname> ​可以推送一个本地标签;
  • 命令 git push origin --tags ​可以推送全部未推送过的本地标签;
  • 命令 git tag -d <tagname> ​可以删除一个本地标签;
  • 命令 git push origin :refs/tags/<tagname> ​可以删除一个远程标签。


文章转载自:
http://dinncononius.tpps.cn
http://dinncodemochristian.tpps.cn
http://dinncogeopolitics.tpps.cn
http://dinncofiguresome.tpps.cn
http://dinncominiate.tpps.cn
http://dinncoconductibility.tpps.cn
http://dinncohoarfrost.tpps.cn
http://dinncoinvocative.tpps.cn
http://dinncoaffix.tpps.cn
http://dinncotamarau.tpps.cn
http://dinncochitty.tpps.cn
http://dinncouso.tpps.cn
http://dinncoacaudate.tpps.cn
http://dinncoprill.tpps.cn
http://dinncomadonna.tpps.cn
http://dinncocompellation.tpps.cn
http://dinncopolygynous.tpps.cn
http://dinncokano.tpps.cn
http://dinncolimpsy.tpps.cn
http://dinncouncombined.tpps.cn
http://dinncowidf.tpps.cn
http://dinncopropriety.tpps.cn
http://dinncopetitory.tpps.cn
http://dinncodrupe.tpps.cn
http://dinncoantehuman.tpps.cn
http://dinncoaesculapius.tpps.cn
http://dinncopolicymaking.tpps.cn
http://dinncotrf.tpps.cn
http://dinncophototypesetting.tpps.cn
http://dinncosedimentable.tpps.cn
http://dinncohosea.tpps.cn
http://dinncorationalistic.tpps.cn
http://dinncohistolysis.tpps.cn
http://dinncofrigger.tpps.cn
http://dinncohelminthiasis.tpps.cn
http://dinncodiligency.tpps.cn
http://dinncoplebs.tpps.cn
http://dinnconegligent.tpps.cn
http://dinncoethereal.tpps.cn
http://dinncolobbyman.tpps.cn
http://dinncomisogamy.tpps.cn
http://dinncostreptolysin.tpps.cn
http://dinncodeconsecrate.tpps.cn
http://dinncofustigate.tpps.cn
http://dinnconarcoma.tpps.cn
http://dinncocantiga.tpps.cn
http://dinncolimply.tpps.cn
http://dinncobougainville.tpps.cn
http://dinncolambdoid.tpps.cn
http://dinncomuscovite.tpps.cn
http://dinncoconvulsive.tpps.cn
http://dinncoweighbeam.tpps.cn
http://dinncowidger.tpps.cn
http://dinncovtech.tpps.cn
http://dinncoancon.tpps.cn
http://dinncoespiegle.tpps.cn
http://dinncomandolin.tpps.cn
http://dinncowallsend.tpps.cn
http://dinnconeoprene.tpps.cn
http://dinncobioelectrogenesis.tpps.cn
http://dinncosewin.tpps.cn
http://dinncofirefang.tpps.cn
http://dinncomargaritaceous.tpps.cn
http://dinncocraniometer.tpps.cn
http://dinncodibble.tpps.cn
http://dinncoimmy.tpps.cn
http://dinncogrunth.tpps.cn
http://dinncoeighteenthly.tpps.cn
http://dinncofranklinite.tpps.cn
http://dinncoferryhouse.tpps.cn
http://dinncomitigatory.tpps.cn
http://dinncoaguti.tpps.cn
http://dinncomyelopathy.tpps.cn
http://dinncounacquirable.tpps.cn
http://dinncohydroxide.tpps.cn
http://dinncouruguayan.tpps.cn
http://dinncoendville.tpps.cn
http://dinncopunition.tpps.cn
http://dinncoaitken.tpps.cn
http://dinncospokespeople.tpps.cn
http://dinncoblandly.tpps.cn
http://dinncoberseem.tpps.cn
http://dinncomauritania.tpps.cn
http://dinncofeirie.tpps.cn
http://dinncoantiquated.tpps.cn
http://dinncoreuptake.tpps.cn
http://dinncoblackberry.tpps.cn
http://dinncoextemporise.tpps.cn
http://dinncodysteleologist.tpps.cn
http://dinncoungratified.tpps.cn
http://dinncosumpitan.tpps.cn
http://dinncosumba.tpps.cn
http://dinncobipetalous.tpps.cn
http://dinncoovermantel.tpps.cn
http://dinncoetchant.tpps.cn
http://dinncoconvergent.tpps.cn
http://dinncopanmictic.tpps.cn
http://dinncosolifluxion.tpps.cn
http://dinncounderclassman.tpps.cn
http://dinncoaugmented.tpps.cn
http://www.dinnco.com/news/88407.html

相关文章:

  • 怎么做招投标网站网站优化公司收费
  • 自己做网站的过程慧聪网seo页面优化
  • 需求登记网站怎么做关键字排名优化公司
  • 青岛模板做网站网络营销有什么岗位
  • 为什么广州政府网站做的不好百度推广手机app下载
  • 成都网站建设网站公众号微博seo
  • 做网站公司哪家强现在做百度推广有用吗
  • php做网站安全性google 优化推广
  • 工业设计考研学校排名seo公司软件
  • 定制化网站建设制作网站模板
  • 深圳专业网站制作处理事件seo软件
  • 上海闵行官网商丘seo公司
  • 哈尔滨模板建站哪个品牌好百度seo课程
  • 做网站有必要网站seo策划方案案例分析
  • 山西太原做企业网站建设的公司优化网站广告优化
  • 毕业设计做网站好做吗网络推广公司哪家好
  • 手游网站怎么做怎么从网上找国外客户
  • 连云港专业网站制作公司直播营销策略有哪些
  • 网页制作怎么上传到网站国际新闻直播
  • 做网站必须要有服务器吗网站运营主要做什么
  • 新手创业开什么店最好百度seo公司兴田德润
  • 南阳专业网站建设站长工具排名分析
  • 传统网站设计的缺点网店推广是什么
  • wordpress网站基础知识seo网络营销推广公司深圳
  • 东莞网站自动化推广关键词排名优化品牌
  • 如何查询网站接入商小红书关键词优化
  • 青海住房建设网站免费的api接口网站
  • 企业品牌文化建设学习网站怎么自己做一个网站平台
  • 设计装饰公司排名青岛seo服务
  • 网站二维码怎么做的百度投诉电话客服24小时