Is it possible to apply tag after merge within visual studio 2013 for a Git repository? I'm looking for this action in the team explorer but I can't find it.
Thanks..
In order to create a Git tag for a specific commit, use the “git tag” command with the tag name and the commit SHA for the tag to be created. If you want to create an annotated tag for a specific commit, you can use the “-a” and “-m” options we described in the previous section.
Just enter your commit message and then select Commit All. The equivalent command for this action is git commit -a . Visual Studio also makes it easy to commit and sync with one click by using the Commit All and Push and Commit All and Sync shortcuts.
Assign an annotated tag to a commitFrom the main menu, choose Git | New Tag. In the Tag dialog that opens, under Git Root, select the path to the local repository in which you want to tag a commit, and specify the name of the new tag. In the Commit field, specify the commit that you want to tag.
To add a tag to a specific commit, open the History page from Team Explorer. Right click on the commit that you want to assign a tag, and click on Create Tag from the context menu, as shown here: This will open the Commit Details dialog inside the Team Explorer window, with the complete details of the specific commit.
You can now do it in VS 2015, in Team Explorer, go to sync --> outgoing commits --> double click an item to open.
You should see a 'Create Tag' action.
Alternately, if your branch is already synced, go to Branches --> Right-click on your current branch --> View History... --> Then right-click the commit you want to tag.
You should see a 'Create Tag' action.
These instructions work at least for VS 2015 Professional and Enterprise.
Based on this page I'd say not currently. Although you are able to view them.
I want to:
Apply a tag to a commit
Can I do it in Visual Studio?
No, but you can view them. See View and manage past versions in Git.
How do I do it from the command prompt?
You can use the command prompt to push, edit, and remove tags (see Git-scm: Git Basics - Tagging) from a repository in TFS if you have sufficient permissions.
In Visual Studio 2017 (v15.3.5
), in the Team Explorer
=> Branches
window, I can right-click on a branch. Then click on the View History...
command. A new Local History
window is opened. In that window, I can right click on a specific commit and hit the Create Tag
command in the context menu.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With