• 打标签tag


    1、$ git tag # 在控制台打印出当前仓库的所有标签

    2、$ git tag [tagname] # 新写入标签

    3、push单个tag,命令格式为:git push origin [tagname]

    4、push所有tag,命令格式为:git push [origin] --tags
      例如:
      git push --tags
      或
      git push origin --tags

    如何在多次提交后给某个commit添加tag

    1、使用git log查看提交日志,找出你需要的那个commit。假设提交的commit id为“928a92a123456b126eb1234567c210ab8f1234e9d”。

    2、使用git checkout <commit id>,例如git checkout 928a92a123456b126eb1234567c210ab8f1234e9d。这条命令会将你的本地工程切回到某次提交记录上。

    3、使用git tag进行打标签,例如:git tag v1.0.1

    4、然后将本地的git标签提交到远程仓库上,git push origin v1.0.1

  • 相关阅读:
    HutchTab
    configbody tcl tk
    initial class tcl tk
    ::dcss
    StatusBar
    read url c#
    new tab addin
    extraDevice
    Android平台开发WIFI function portingWIFI功能移植
    如何设置Android系统中的BT2.1 device到SSP的DEBUG模式
  • 原文地址:https://www.cnblogs.com/ycyh1314/p/11640899.html
Copyright © 2020-2023  润新知