Search code examples
gitatlassian-sourcetreesourcetree

How to create some tags under a special category?


I saw someone could create tags which are classifies into different folders in some tools like sourcetree.

I am wondering how to create the tags with folders

folder1,tag1,tag2


Solution

  • Tag folders don't exists in git. However, some tools use the convention to consider whatever is before a / in the reference name as a folder or path. This applies to references in general, therefore tags and branches.

    You can use:

    $ git tag folder1/tag1
    

    to create a "tag1 with folder1".