---
title: "Version Control"
description: "Save an extra back up of your project files in the cloud, keep a history of all code changes, and easily revert changes to your projects."
canonical: https://www.quantconnect.com/docs/v2/local-platform/projects/version-control
markdown: https://www.quantconnect.com/docs/v2/local-platform/projects/version-control.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/02%20Local%20Platform/08%20Projects/99%20Version%20Control
modified: 2026-10-30
index: https://www.quantconnect.com/llms.txt
---

# Version Control

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Local Platform](https://www.quantconnect.com/docs/v2/local-platform.md) > Projects > Version Control

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

Version control is the practice of tracking and managing changes to code files. By using version control, you can save an extra back up of your project files in the cloud, keep a history of all code changes, and easily revert changes to your projects.

## Create Workspace Repositories

Follow these steps to set up a new version control repository for one of your [organization workspaces](https://www.quantconnect.com/docs/v2/local-platform/development-environment/organization-workspaces.md):

1. In your version control system, [create a new repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository) for the organization workspace.
2. Open a terminal in your organization workspace and then [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) the new repository to a temporary directory.
   ```
   $ git clone https://github.com/<userName>/<repoName>.git temp
   ```
3. Move the `.git` directory from the temporary directory to the workspace directory.
   ```
   $ mv temp/.git <workspaceDirectory>/.git
   ```
4. Delete the temporary directory.
   ```
   $ rm -r temp
   ```

## Push Changes to Git

Follow these steps to push the changes of your organization workspace to your version control system:

1. Open a terminal in your organization workspace and then add the project directories and the `Library`.
   ```
   $ git add Library/
   $ git add <projectDirectory1>/
   $ git add <projectDirectory2>/
   ```
2. Commit the changes.
   ```
   $ git commit -am "Latest Updates"
   ```
3. Push the changes to the repository.
   ```
   $ git push
   ```
