Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Tag Git commit with VisualStudio 2013

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..

like image 933
bAN Avatar asked Jan 26 '14 09:01

bAN


People also ask

Can you tag a commit in git?

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.

How do I commit to git using Visual Studio?

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.

How do you add a tag to a commit?

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.

How do I add a tag in Visual Studio?

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.


3 Answers

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.

like image 170
jokab Avatar answered Oct 18 '22 02:10

jokab


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.
like image 25
Chris Avatar answered Oct 18 '22 00:10

Chris


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.

like image 2
Oleg Burov Avatar answered Oct 18 '22 00:10

Oleg Burov