Skip to content

Commit d1af3bb

Browse files
authored
[DOCS] Document how to create git tags (#1417)
Copied from our sister project at MyIntervals/emogrifier#1532
1 parent e6b19f2 commit d1af3bb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/release-checklist.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,28 @@
1313
[Releases tab](https://github.com/MyIntervals/PHP-CSS-Parser/releases),
1414
create a new release and copy the change log entries to the new release.
1515
1. Post about the new release on social media.
16+
17+
## Working with git tags
18+
19+
List all tags:
20+
21+
```bash
22+
git tag
23+
```
24+
25+
Locally create a tag from the current `HEAD` commit and push it to the git
26+
remote `origin`:
27+
28+
```bash
29+
git tag -a v4.2.0 -m "Tag version 4.2.0"
30+
git push --tags
31+
```
32+
33+
Locally create a
34+
[GPG-signed](https://git-scm.com/book/ms/v2/Git-Tools-Signing-Your-Work) tag
35+
from the current `HEAD` commit and push it to the git remote `origin`:
36+
37+
```bash
38+
git tag -a -s v4.2.0 -m "Tag version 4.2.0"
39+
git push --tags
40+
```

0 commit comments

Comments
 (0)