---
title: "Accessing your Site Factory repository"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to access and configure your Site Factory Git repository. Follow step-by-step instructions to add SSH keys, clone your codebase, and prepare for efficient website development on Acquia Cloud Platform."
image:
type: "page"
url: "/site-factory/accessing-your-site-factory-repository"
id: "451ed200-55e2-4a9d-bab8-de96dccdeb49"
---

Before you begin to develop your websites on Site Factory, you must configure your Git repository. Until configured, you cannot access, edit, or update your websites’ codebases.

To prepare your environment for code development, you must first [add your SSH key](../../cloud-platform/manage/ssh/getting-started-ssh/add-key.html) to your Cloud Platform repository, and then [clone your code repository](#acsf-clone-repo) for local work.

Note

For more information about Git, see the online version of [Pro Git](http://git-scm.com/book).

Adding your SSH key to your Cloud Platform profile
--------------------------------------------------

Without a SSH key added to your Cloud Platform profile, you cannot clone down your repository or perform other Git commands against it. For a step-by-step description of adding your SSH key to your profile, see [Adding a public key to an Acquia profile](/acquia-cloud-platform/manage-apps/command-line/ssh/getting-started/add-key).

Cloning your code repository
----------------------------

After you have added your SSH key to the Cloud Platform interface, you can clone your code from your Cloud Platform Git repository to your local computer. Your code repository contains a basic Gardens distribution, along with its install files, profile, and required and default modules.

Important

The code distribution provided when a new Site Factory account is provisioned should be [replaced with the distribution of your choice](/site-factory/known-issues#acsf-known-update-distro) before development begins.

Create a new folder to contain the code repository, and then run the following command from the folder, replacing `[Git_URL]` with your Git repository’s URL:

    git clone [Git_URL]

### Obtaining the Git URL

To obtain your Git repository’s URL:

1.  [Sign in to the Cloud Platform user interface](https://cloud.acquia.com) and select your application.
    
2.  Click **Actions** > **View Git Information**.
    
    ![Viewing GIT information](https://acquia.widen.net/content/kex5tjcbbo/jpeg/site-factory_viewing-git-information.jpeg?position=c&color=ffffffff&quality=80&u=u1mnox)
    
3.  In the **Git Information** panel, the repository URL is the value in the **URL** field. Click the **Copy** icon to copy the URL to your clipboard.
    
    ![Viewing Git repository URL](https://acquia.widen.net/content/vn18hpbh01/jpeg/site-factory_viewing-git-repository-url.jpeg?position=c&color=ffffffff&quality=80&u=u1mnox)
    

Next step
---------

As part of your continuous integration (CI) setup, you should treat your Git repository that is hosted by Acquia as a repository for build artifacts.

Before beginning development on your new repository, you should review [Git best practices on Site Factory](/site-factory/workflow/git/practices)