Cloning a repository SourceCraft
You can create a local copy of a SourceCraft repository on your computer or on a virtual machine:
-
Open the SourceCraft home page.
-
On the
Home tab, under Your craftspace, navigate to Repositories and select your repository.Alternatively, you can open any public repository.
-
In the top-right corner of the repository page, click
Clone. -
Copy the
link for cloning the repository from the HTTPS or SSH field.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>Warning
Before confirming your first SSH connection, verify the server’s key fingerprint. This helps you detect server spoofing. If the fingerprints mismatch, cancel the connection and contact support.
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>
Tip
You can also download the contents of a specific repository branch without the commit history as an archive.