---
title: "Sending updates to your code repository"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to commit and push code changes to your Drupal repository on Cloud Platform. Follow step-by-step instructions for Git commands and best practices for efficient version control."
image:
type: "page"
url: "/acquia-cloud-platform/sending-updates-your-code-repository"
id: "ade13185-e77a-4540-a391-92bc1f9c89c6"
---

When you make changes to your Drupal [docroot](/definitions/docroot) that you want to save and deploy to your site, commit the changes from your local workspace directory. Remember that you can commit only to a branch, not to an existing tag. You can find these and other useful VCS commands in the Cloud Platform [Application info](/acquia-cloud-platform/develop-apps/repository/git#basic-git-commands) panel.

Committing with Git
-------------------

In the following Git `commit`, note that the `-a` option sends all of the changes that you made to the workspace. To commit only a specific file or directory, replace `-a` with the name of the folder or directory.

    git commit -a -m "Added Foo module."

After you use the `commit` command to send your changes to your local clone of the repository, you must use the `git push` command to push the changes to the appropriate branch of your code on Cloud Platform. For example, if you are deploying from a branch named `master`, use the following command:

    git push origin master

Related topics
--------------

*   [About your code repository](/acquia-cloud-platform/develop-apps/repository)
*   [Checking out a local copy of your code](/acquia-cloud-platform/develop-apps/repository/checkout)
*   [Reset a Git repository on Cloud Platform](/acquia-cloud-platform/help/92791-reset-git-repository-acquia-cloud "Reset a Git repository on Acquia Cloud")