Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看到有人可以创建标签,这些标签在一些工具(如 sourcetree)中被分类到不同的文件夹中。
我想知道如何使用文件夹创建标签
文件夹 1,标签 1,标签 2
标记文件夹不存在于git. 但是,某些工具使用约定/将引用名称中的 a 之前的任何内容视为文件夹或路径。这通常适用于引用,因此适用于标签和分支。
git
/
您可以使用:
$ git tag folder1/tag1
创建一个“tag1与folder1”。
tag1
folder1
建议使用带注释的标签而不是常规标签。
您只需将-aas 标志添加到标签中,标签将包含与提交中相同的元数据。(提交者、作者、日期、消息等)
-a