Summary of git tag related operations

1. Introduction

This article mainly introduces tag-related operations in git for reference.

Two, command introduction

2.1 Add tag and push to remote

//添加tag
git tag vXXX
//添加tag 加备注
git tag -a vXXX -m "备注文字"
//push到远程
git push origin vXXX

2.2 Delete tag and synchronize to remote

//本地删除tag:
git tag -d vXXX
//将删除tag的操作push到远程:
git push origin :refs/tags/vXXX

Three, summary

This article mainly introduces tag-related operations. It is being updated continuously. Welcome to discuss and exchange together~

Guess you like

Origin blog.csdn.net/xuxu_123_/article/details/131069184