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.Also, you can open any public repository.
-
In the top-right corner of the repository page, click
Clone. -
From the HTTPS or SSH field, copy the
repository cloning link.Depending on the cloning connection protocol, different domains are used:
Protocol
Domain
Cloning link
HTTPS
git.sourcecraft.devhttps://git@git.sourcecraft.dev/<organization_slug>/<repository_slug>.gitSSH
ssh.sourcecraft.devssh://ssh.sourcecraft.dev/<organization_slug>/<repository_slug>.git -
In the terminal, run this command:
git clone <link_for_cloning_repository>Example of a command for cloning a repository with SourceCraft documentation
git clone https://git@git.sourcecraft.dev/sourcecraft/documentation.gitWarning
To clone a private or internal repository, authenticate with a personal access token (PAT) or SSH key.
-
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