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