首先切换到需要打标签的分支上,比如master分支,然后执行打标签命令,如下:
$ git checkout master $ git tag v1.0
标签默认是打在最新的commit id上。
Last updated 5 years ago
Was this helpful?