FAQ Get,update GIT project sources: Difference between revisions

Jump to navigation Jump to search
Line 168: Line 168:
To add a tag to a current version:
To add a tag to a current version:
<source lang="bash">
<source lang="bash">
git tag -a -m "Beta|Release|Maintenance release x.y.betai" "x.y.z_YYYYMMDD"
git tag -a -m "Release|Maintenance release x.y.z" "x.y.z"
or
or
git tag -a -f -m "Beta|Release|Maintenance release x.y.betai" "x.y.betai_YYYYMMDD" idcommit  # -f force if an existing tag already exists, idcommit allows to choose commit to tag
git tag -a -f -m "Beta x.y.betai" "x.y.betai_YYYYMMDD" idcommit  # -f force if an existing tag already exists, idcommit allows to choose commit to tag


git push --tags  # To push tags to remote origin
git push --tags  # To push tags to remote origin

Navigation menu