Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tag commit in VSCode

Tags:

I am trying to Create a Tag Commit in Git via VSCode. VS code's built in Git has a commit option. But How to create a Tag Commit via VS Code

like image 828
Avinash Avatar asked Jan 03 '17 07:01

Avinash


People also ask

How do I tag a commit 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.

How do you add a tag in Vscode?

First, select some text in the editor. Then in the Command Palette ( Ctrl + Shift + P ), type "Surround with Tag" - or simply hit Ctrl + I / Cmd + I . This will prompt a window, where you can type in the tag name. The opening and closing tags get inserted before and after the initial text selection.

What is tag in git commit?

Tags are ref's that point to specific points in Git history. Tagging is generally used to capture a point in history that is used for a marked version release (i.e. v1. 0.1). A tag is like a branch that doesn't change. Unlike branches, tags, after being created, have no further history of commits.


1 Answers

You can open the Command Palette (Ctrl + Shift + P) and choose Git: Create Tag.

Give the tag a name and press Enter.

To push the tag to the remote server, you can open the Command Palette again and choose Git: Push (Follow Tags).

(It seems this is the PR that included the feature: https://github.com/Microsoft/vscode/pull/26999)

like image 150
Lucas Basquerotto Avatar answered Sep 29 '22 20:09

Lucas Basquerotto