DEV Community 👩‍💻👨‍💻

Discussion on: A Tutorial for Tagging Releases in Git

stephaneeybert profile image
Stephane Eybert

Okay, we know now how to create tags. But why do we want to do that ? Who is using these tags we created ? And what do they do with these tags ? Thanks !

paul4156 profile image
Paul Zhang

Anyone wants to switch to a specific version can do it easily with tags (git checkout v1.2.3 -b v1.2.3)

davidbruchmann profile image
David Bruchmann

Tags are used for package-management (i.e. composer for PHP) and allow many automated tasks from testing to deployment where manual steps are not required anymore or minimized to the least amount of individual work. It's possible to do those things with "dev-main" too but that's an undefined and usually just most recent version, so it's not easily reproduceable if something is changed by further commits.