Skip to content

Commit ca0a112

Browse files
author
Amin Jafari
committed
Merge branch 'advanced/02-git-tag'
2 parents 42b2fb4 + 08974db commit ca0a112

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

git-tag.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Git Tag
2+
3+
The `git tag` command marks specific points in history.
4+
5+
## Usage
6+
```bash
7+
git tag <name> # Create a tag
8+
git tag -a <name> -m "Message" # Create an annotated tag
9+
```
10+
## Explanation
11+
- Tags are often used to mark release points (e.g., v1.0.0).
12+
13+
- Use git push --tags to push tags to the remote.
14+
15+
## Example
16+
```bash
17+
git tag v1.0.0
18+
git push --tags
19+
```

0 commit comments

Comments
 (0)