# Tags

Se quisermos criar tags anotadas, podemos utilizar o comando

```
$ git tag 1.0 -m "release 1.0"

Ficará assim:

259adf3  (HEAD -> main, tag: show, tag: 1.0, origin/main, teste) teste - nicollaslopes, 2 days ago
070716b  first commit - nicollaslopes, 2 days ago
```

Se quisermos criar tag de um commit específico, podemos utilizar

```
$ git tag -a "0.1.beta" -m "release 0.1.beta" 070716b

Ficando dessa forma

259adf3  (HEAD -> main, tag: show, tag: 1.0, origin/main, teste) teste - nicollaslopes, 2 days ago
070716b  (tag: 0.1.beta) first commit - nicollaslopes, 2 days ago
```

Quando fazemos um push, o git por padrão não sobe nenhuma tag que foi criada, para isso, precisamos usar a flag abaixo

```
$ git push origin master --folow-tags
```

Se quisermos deletar as tags localmente e no servidor, basta utilizar

```
$ git tag -d "release 0.1.beta"
$ git push --delete origin "release 0.1.beta"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nicollaslopes.gitbook.io/estudos/git/tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
