Tags need to be pushed to the remote target (#228)

Add a note that tags need to be pushed to the remote target.

Please let me know, if you have any suggestions to improve the wording and this paragraph.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/228
Co-authored-by: mutluyuz <mutluyuz@noreply.codeberg.org>
Co-committed-by: mutluyuz <mutluyuz@noreply.codeberg.org>
This commit is contained in:
mutluyuz 2022-05-10 08:09:38 +02:00 committed by René W
parent 5f022adfc6
commit 9e3acf9f44

View file

@ -23,7 +23,17 @@ If you want to create tags it is recommended to do it using Git. You can also cr
### On Git
To create a tag using git, use the following command in your repo folder.
```bash
git tag -a <version number here> -m "<my tag name>"
git tag -a <tag name, e.g., a version number> -m "<my tag message>"
```
You can omit `"<my tag message>"` to write a longer tag message in an editor window. Tags are not automatically pushed using `git push` (comparable to branches). Thus, they have to be pushed manually to the remote target:
```bash
git push --tags <remote target, probably "origin">
```
The argument `--tags` pushes all local tags to the remote target. If you want to push only a specific tag, use:
```bash
git push <remote target, probably "origin"> <tag name, e.g., "v1.2.3">
```
### On Codeberg