Creating a tag in a SourceCraft repository

Tags mark key points in the repository's development history.

You can create a tag from a specific branch in the SourceCraft interface when creating a release, or in advance using git based on a branch or a specific commit.

To create a tag using git:

  1. Clone the repository:

    1. Install Git.

    2. Open the SourceCraft home page.

    3. On the Home tab, under Your craftspace, navigate to Repositories and select your repository.

    4. In the top-right corner, click Clone.

    5. Depending on your connection method, copy the link for cloning the repository.

    6. In the terminal, run this command:

      git clone <link_for_cloning_repository>
      
    7. Go to your cloned repository:

      cd <repository_name>
      
  2. Navigate to the commit you want to use as the basis for your release:

    • To navigate to the current state of the main branch:

      git checkout main
      
    • To navigate to a specific commit:

      git checkout <commit_hash>
      

      Tip

      For more information, see Viewing the commit history in SourceCraft.

  3. Create a tag and push the changes to the remote repository:

    git tag -a <tag_name> -m "<description>"
    git push --tags
    

See also