git中tag的使用

1、获取tags

$ git tag

2、新建tag

有记录信息
$git tag -a releases-1.0.1 -m 'add i.sh file.'

   没有记录信息 

$git tag -a releases-1.0.1

3、本地的tag同步到远端服务器上

$git push origin --tags

4、查看tags的记录信息

$git tag -l -n

  

 

原文地址:https://www.cnblogs.com/xzlive/p/8881107.html