/
So You Want To Tag/Label Your Code

So You Want To Tag/Label Your Code

Say you've got a working copy of your code and want to tag/label it so that you can retrieve that version at any time.  You could also use versioning to accomplish this but you may not want to cut a version for a valid reason (eg. your code is not going to prod anytime soon but you still want to stamp it at a known/working state).

What's the difference between Tag and Label?  Well, not much, really.  If you're using GIT then you Tag.  If you're still using TFS then you Label.


Step-by-step guide

To Tag...

Within your Azure DevOps project navigate to your Repo and underneath the Repo menu item you'll see Tags.  Simply create a Tag there.  Use a descriptive comment so that it's clear why/when you created the Tag.


To Label...

In Visual Studio, within Source Control Explorer, navigate to your project, right-click on it, select Advanced, and then Apply Label...

Then name your Label and give it a descriptive comment so that it's clear why/when you created the Label.

 

To find your Label, again right-click on your project, select Find, and then Find Label...

Use the dialog to search for your Label

If you double-click on the search result that matches your Label, it will open the Label view which allows you to do various things including retrieving the code with that Label



Related content

Making code changes in DevOps using Visual Studio
Making code changes in DevOps using Visual Studio
More like this
How to setup azure repos with VS code?
How to setup azure repos with VS code?
More like this
So You Want to Install and Use a Self-Hosted Azure DevOps Build and Release Agent
So You Want to Install and Use a Self-Hosted Azure DevOps Build and Release Agent
More like this
How-to use Git with Visual Studio
How-to use Git with Visual Studio
More like this
How to set up working environment and make code changes for ROFS
How to set up working environment and make code changes for ROFS
More like this
How to use setup and use Azure Artifacts for .NET NuGet packages
How to use setup and use Azure Artifacts for .NET NuGet packages
More like this