Açıklaması şöyle
In Git, tags are helpful, and you can use them to manage the release. You can think of a Git tag like a branch that will not change. It is significantly more important if you are making a public release.
Örnek
Şöyle yaparız. Bu bir bash metodu ve betiğe girilen tag'i hem yerel hem de uzak depodan siler sonra tekrar yaratır.
function update_remote_tag() {
local TAG=$1
if [ -z "$TAG" ]; then
echo "Usage: update_remote_tag <tag>"
return 1
fi
# Delete local tag
git tag -d $TAG
# Create new local tag
git tag $TAG
# Delete from remote. upstream is the remote repo
git push upstream :refs/tags/$TAG
# Push to remote
git push upstream $TAG
}-a seçeneği
Örnek
Şöyle yaparız
Eğer bir tag'i doğrulamak istersek şöyle yaparız$ git tag -a v1.0.0
$ git verify-tag <tag>
-l seçeneği
Tag'leri listeler
Örnek
Şöyle yaparız
git tag -l
O tag'i checkout etmek için şöyle yaparız
git checkout tags/release-6.0.0 -b orcun
-m seçeneği
Örnek
Hiç yorum yok:
Yorum Gönder