# Git Lite

Git Lite simplifies version control for dbt™ projects. It provides a purpose-built git workflow that keeps you in sync with your main branch, perfect for users new to git or those who prefer a streamlined interface.

{% hint style="info" %}
Git Lite creates new branches from your remote main/master branch and automatically handles syncing with remote branches.
{% endhint %}

You can choose between Git Lite and Git Advanced in your [IDE preferences](https://docs.paradime.io/app-help/documentation/code-ide/user-interface/ide-preferences).

### Branch Management

#### Creating a New Branch

1. Click the **Git Lite** icon (🪄) in the left panel of the Code IDE
2. Select "Create Branch"
3. Enter your branch name
4. Click "Create Branch"

{% @arcade/embed flowId="ZL4fNCjbrPyTR6LMT17R" url="<https://app.arcade.software/share/ZL4fNCjbrPyTR6LMT17R>" %}

#### Switching Branches

1. Click the **Git Lite** icon (🪄) in the left panel of the Code IDE
2. Click the branch dropdown
3. Use the search bar to find your branch
4. Select the branch name to switch

{% @arcade/embed flowId="VntINqGLyH097OH2Yobd" url="<https://app.arcade.software/share/VntINqGLyH097OH2Yobd>" %}

{% hint style="info" %}
Branch list updates automatically every 30 minutes. Click the refresh button to update manually.
{% endhint %}

### Working With Changes

#### Keeping Branches Updated

Git Lite automatically checks if your branch is behind your remote branch and/or your main/master branch. This check happens:

* After each commit
* When you click the refresh button manually

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2FZ8ptvJ1cK5WBEMV92BNT%2Fimage.png?alt=media&#x26;token=dc0ed9e8-17de-44b6-a670-45297bfc6098" alt=""><figcaption></figcaption></figure>

#### Committing Changes

1. Click the **Git Lite** icon (🪄) in the left panel of the Code IDE
2. Enter a commit message
3. Click "Commit and Push"

{% hint style="info" %}
**Git Lite will:**

* Commit your changes
* Push to your remote branch
* Automatically pull and merge remote changes if needed
  {% endhint %}

{% @arcade/embed flowId="AZDaPJ6I1gZv3Pn3xG4F" url="<https://app.arcade.software/share/AZDaPJ6I1gZv3Pn3xG4F>" %}

{% hint style="info" %}
To abandon changes, click the "Discard All Changes" button.
{% endhint %}

### Advanced Features

#### Opening Pull Requests

1. Click the **Git Lite** icon (🪄) in the left panel of the Code IDE
2. Ensure all changes are committed by clicking "Commit and Push"
3. Click "Open Pull Request"
4. Review changes in your git provider

{% hint style="warning" %}
The "Open Pull Request" button is only enabled when there are no uncommitted changes.
{% endhint %}

#### Reverting Commits

To undo your last commit:

1. Click "Revert Commit" in the top right corner
2. Review the commit details
3. Click "Continue" to revert

<figure><img src="https://2337193041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHET0AD04uHMgdeLAjptq%2Fuploads%2FQMaU9mbEosvxFjhmsvaf%2Fimage.png?alt=media&#x26;token=c57c6525-0b21-44ca-b360-a8789e50415d" alt=""><figcaption></figcaption></figure>

#### Handling Merge Conflicts

When merge conflicts occur, Git Lite provides tools to help you resolve them easily.

{% hint style="info" %}
For detailed instructions on resolving merge conflicts, see our [merge conflict documentation](https://docs.paradime.io/app-help/concepts/working-with-git/merge-conflicts).
{% endhint %}
