【发布时间】:2014-01-26 09:57:05
【问题描述】:
是否可以在 Visual Studio 2013 中合并后为 Git 存储库应用标签? 我正在团队资源管理器中查找此操作,但找不到。
谢谢..
【问题讨论】:
-
Git 的所有功能都可以通过命令行使用。 GUI 和 IDE 通常只提供一个子集。
是否可以在 Visual Studio 2013 中合并后为 Git 存储库应用标签? 我正在团队资源管理器中查找此操作,但找不到。
谢谢..
【问题讨论】:
您现在可以在 VS 2015 中执行此操作,在 Team Explorer 中,转到同步 --> 传出提交 --> 双击要打开的项目。
您应该会看到“创建标签”操作。
或者,如果您的分支已经同步,请转到分支 --> 右键单击当前分支 --> 查看历史记录... --> 然后右键单击要标记的提交。
您应该会看到“创建标签”操作。
这些说明至少适用于 VS 2015 Professional 和 Enterprise。
【讨论】:
git push --tags。在 Visual Studio 中使用同步或推送不会推送新创建的标签。
基于this page 我会说目前没有。虽然您可以查看它们。
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.
【讨论】:
在 Visual Studio 2017 (v15.3.5) 的 Team Explorer => Branches 窗口中,我可以右键单击一个分支。然后点击View History... 命令。将打开一个新的Local History 窗口。在该窗口中,我可以右键单击特定提交并在上下文菜单中点击Create Tag 命令。
【讨论】: