> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directenergypartners.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Push Changes

This section guides you through committing and pushing your local changes to your cloned GitHub repository.

Once you have updated the necessary files, such as the `devices` file, the `config` file, or any address and control maps,
you need to save these changes to your repository. Pushing your changes ensures they are stored on GitHub, making them accessible
from other machines or for later deployment to the Power Platform controller.

You can commit and push your changes either by using Git commands in the terminal or by using the built-in Git features in a
code editor like Visual Studio or Windsurf. The following steps will walk you through both methods.

## Using Git Commands

<Steps>
  <Step title="Open Terminal">
    Open a terminal on your local machine.
  </Step>

  <Step title="Check Status">
    Run the following command to check the status of your repository:

    ```bash theme={null}
    git status
    ```
  </Step>

  <Step title="Add Changes">
    Run the following command to add your changes to the staging area:

    ```bash theme={null}
    git add .
    ```

    or run the following command to only add specific files:

    ```bash theme={null}
    git add <file_name_1> <file_name_2>
    ```
  </Step>

  <Step title="Commit Changes">
    Run the following command to commit your changes:

    ```bash theme={null}
    git commit -m "Your commit message"
    ```
  </Step>

  <Step title="Push Changes">
    Run the following command to push your changes to your remote repository:

    ```bash theme={null}
    git push
    ```
  </Step>
</Steps>

## Using Visual Studio

<Steps>
  <Step title="Open Visual Studio Code">
    Open your project in Visual Studio Code
  </Step>

  <Step title="Open Source Control Panel">
    Open the Source Control panel by clicking the Git icon on the left sidebar (or pressing Ctrl+Shift+G).
  </Step>

  <Step title="Stage Your Changes">
    <ul>
      <li>Hover over the files you modified and click the + icon, or</li>
      <li>Click + next to Changes to stage all files.</li>
    </ul>
  </Step>

  <Step title="Write a Commit Message">
    Write a commit message in the text box at the top of the Source Control panel describing your changes.
  </Step>

  <Step title="Commit the Changes">
    Click the checkmark icon to commit the staged changes.
  </Step>

  <Step title="Push the Changes">
    <ul>
      <li>Click the three dots ... at the top of the Source Control panel and select Push, or</li>
      <li>Click the upward arrow icon if it appears near the bottom left corner.</li>
    </ul>
  </Step>
</Steps>
