'Tag commit in VSCode

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



Solution 1:[1]

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)

Solution 2:[2]

Open the command line in the git repo and type "git tag mytag".

There is currently no way to add a tag inside of the VS Code test editor.

Solution 3:[3]

In addition of Git: Create Tag, you now have Git: Push Tag with VSCode 1.52 (Nov. 2020) and PR 110096, which fixes issue 109799.

Even more automatic: the new setting git.followTagsWhenSync: Follow tags when running Git: Sync.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mi Be
Solution 2 MrHinsh - Martin Hinshelwood
Solution 3