Tsallaka zuwa abun ciki
Justice Tech School

Pushing Tags

Tags are not pushed by default. Use git push --tags or push a single tag.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
git init -q --bare ../r.git && git remote add origin ../r.git && git push -q -u origin main
git tag v1.0
git push -q origin v1.0
git ls-remote --tags origin | wc -l

Result

1

Exercise

Push all tags.

git push 

Quiz Test

Are tags pushed by default?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.