Code Repositories provides a web-based integrated development environment (IDE) for writing and collaborating on production-ready code in Foundry. The application provides a user-friendly way to interact with the underlying Git repository, and provides a range of additional features:

To edit and manage your code in a familiar IDE, use VS Code workspaces or the Palantir extension for Visual Studio Code. To browse and share committed code without opening an editor, use the code viewer in Code Workspaces.
Code Repositories support creating repositories of many types. The most common repository types are described below.
You can clone a Foundry code repository over HTTPS with Git if you have read access to the repository.
In the repository header, open the dropdown menu next to Code Repositories and select Work locally.

In the Work locally dialog, expand Clone repository under Alternative development resources and select the copy icon to the right of the Git remote URL.

Alternatively, construct the remote URL using your Foundry hostname and the repository resource identifier (RID). To set the local directory name, pass it as the second argument to git clone.
Copied!1git clone "https://<foundry-hostname>/stemma/git/<repository-rid>" my-repository
When Git prompts you for credentials, enter your Foundry username and use your authentication token as the password. Entering the token at the prompt keeps it out of your shell history and the saved remote URL.