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:
-
Clone the repository:
-
Open the SourceCraft home page.
-
On the
Home tab, under Your craftspace, navigate to Repositories and select your repository. -
In the top-right corner, click
Clone. -
Depending on your connection method, copy the link for cloning the repository.
-
In the terminal, run this command:
git clone <link_for_cloning_repository> -
Go to your cloned repository:
cd <repository_name>
-
Navigate to the commit you want to use as the basis for your release:
-
To navigate to the current state of the
mainbranch:git checkout main -
To navigate to a specific commit:
git checkout <commit_hash>Tip
For more information, see Viewing the commit history in SourceCraft.
-
-
Create a tag and push the changes to the remote repository:
git tag -a <tag_name> -m "<description>" git push --tags