helloworld12
V2EX  ›  问与答

git 删除当前提交的 tag 要怎么处理

  •  
  •   helloworld12 · Sep 20, 2018 · 1891 views
    This topic created in 2948 days ago, the information mentioned may be changed or developed.

    嗯,需要自动打 tag,以及,如果当前提交存在 tag,需要先删除,然后再打 tag

    用途是,tag 上有具体的日期,出现问题的时候,方便切换到对应的 tag 但是,如果不先清除当前 tag,每次编译都会有一个新的 tag,tag 太多,不方便找 tag

    1 replies  •  2018-09-20 11:43:51 +08:00
    helloworld12
        1
    helloworld12  
    OP
       Sep 20, 2018
    git log -n 1 --decorate --pretty=oneline | ggrep -oP '(?<=tag:).*(?=,)'
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4659 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 05:37 · PVG 13:37 · LAX 22:37 · JFK 01:37
    ♥ Do have faith in what you're doing.