-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b7beee
commit 472b6b6
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# TAGS | ||
|
||
Demonstrate how to use tags with git. | ||
|
||
## Clone repository | ||
|
||
```sh | ||
gh repo clone kubernetes/ingress-nginx | ||
``` | ||
|
||
## Tags | ||
|
||
```sh | ||
# list tags | ||
git tag | ||
|
||
# sync to a tag | ||
git checkout helm-chart-3.31.0 | ||
git checkout helm-chart-4.0.1 | ||
git checkout helm-chart-3.41.0 | ||
``` | ||
|
||
## Check tag format | ||
|
||
The git check-ref-format command is used to ensure that a reference name (like a branch, tag, etc.) is well-formed. | ||
|
||
```sh | ||
git check-ref-format "tags/0.0.1-a39f8a821fc9" | ||
``` | ||
|
||
## Diffing tags | ||
|
||
```sh | ||
# show files with diff in a specific folder | ||
git diff --summary helm-chart-3.31.0..helm-chart-4.0.1 -- ./charts/ | ||
|
||
# diff files | ||
git diff helm-chart-3.31.0..helm-chart-4.0.1 -- ./charts/ | ||
``` | ||
|
||
## Resources |