Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Lines 6 and 7 can be swapped.

Info

The reason for line 7 is because by default git push does not push the tags. Tags have to be explicitly passed to git remote.

To push multiple tags simultaneously pass the --tags option to git push command. When another user clones or pulls a repo they will receive the new tags.

Use the following convention for <tag id> vX.Y e.g. v1.4

...

Code Block
languagepowershell
git add .
git commit -m %2
git tag -a %1 -m %2
git push origin master
git push origin %1
Info

Great write up on tags https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-tag