美文网首页
IDEA使用Git创建Tag并push

IDEA使用Git创建Tag并push

作者: maxwellyue | 来源:发表于2017-05-24 11:24 被阅读2567次

开发到某个阶段,想要备份这个时间点的代码,可以创建Tag,以便以后可以完整查看此时的代码。

创建Tag

点开VersionControl,选中Log,出现commit列表。选择一个commit记录,右键,选择new tag,在弹出框里输入tag的名字,如v1.0.0即可。


tag.png

从Console窗口可以看到,git执行了这条命令

git -c core.quotepath=false tag v1.0.0 1bdddb1697a5868ba1a9315599a469928bd100bb
```
#### 推送Tag到远程
使用命令:
```
git push origin v1.0.0
```

#### 删除Tag
```
//删除本地tag
git tag -d v0.1.0
//删除已经远程的tag
git push origin :refs/tags/v0.1.0

```

#### 更多请参考
[创建标签](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001376951758572072ce1dc172b4178b910d31bc7521ee4000)

相关文章

  • IDEA使用Git创建Tag并push

    开发到某个阶段,想要备份这个时间点的代码,可以创建Tag,以便以后可以完整查看此时的代码。 创建Tag 点开Ver...

  • git tag

    创建tag git tag [tagName] 将tag push到远程仓库 git push origin [t...

  • GitLab 打tag

    查看标签 git tag 创建标签 git tag 标签名字 -m '消息内容' 推送标签 git push or...

  • 2018-05-08

    创建自己podspeac git tag -m '创建了自己的库' 1.0.0git push --tagspod...

  • git 创建tag , 查看tag , 删除tag

    git tag//查看tag git tag test_tag //在git打tag git push origi...

  • git 打 tag,远程推送 tag

    查看已有tag git tag 本地打tag git tag 远程推送 tag git push o...

  • git 标签tag

    新建tag git tag tag_namegit push origin tag_name 删除tag git ...

  • Git 常用命令

    打Tag 打tag - git tag -v 推送 git push origin --tags

  • 常用命令

    $ git push origin --delete tag git tag -d

  • git 常用命令(持续更新)

    1. 新建 tag 查看 git tag 新建 git tag tagName 推送到远程仓库 git push ...

网友评论

      本文标题:IDEA使用Git创建Tag并push

      本文链接:https://www.haomeiwen.com/subject/uuinxxtx.html