If you attempt to do a normal
git push origin master after adding a tag, you’ll get an “Everything up-to-date” message from Git. In short, this is because you have to push a tag to the origin just like you push a branch.
In my case I just created a tag named
v0.1, so I pushed it like this:
git push origin v0.1
The output from the
git push command looks like this:
$ git push origin v0.1 Counting objects: 1, done. Writing objects: 100% (1/1), 178 bytes | 0 bytes/s, done. Total 1 (delta 0), reused 0 (delta 0) To firstname.lastname@example.org:alvinj/Motify.git * [new tag] v0.1 -> v0.1
Note that I use an annotated tag, which I created like this:
git tag -a v0.1 -m "basic app working, without images"
According to this SO page you can also use this command:
git push --tags
You can find more information about tagging here on the git-scm.com website.