# GitHub

Dualite supports a 2-way sync with GitHub. You can&#x20;

1. Import an exising GitHub repository and push changes.
2. Push your Dualite project to a new GitHub repository.

## Import an existing GitHub Repository

Click on import from Github and copy-paste your existing GitHub repo

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FtVYABw1nh5TJJwBpeRwl%2FFrame%205.png?alt=media&#x26;token=4bd7c7f9-0793-40d1-9ceb-03cced633011" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2Fe5fAy1tKgnh33Uof19Dd%2FFrame%207.png?alt=media&#x26;token=56bcd81d-757c-4163-891a-61366bc92eae" alt=""><figcaption></figcaption></figure>

Select the framework and language you're working with as well as the package manager you want to use. Select the branch you want to import in Dualite. Then click Open Repository.&#x20;

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FYXr8BuLjJMLajh1i5DUN%2FFrame%208.png?alt=media&#x26;token=42e78c02-1a0f-440e-bed3-2d6629c0919e" alt=""><figcaption></figcaption></figure>

#### Pushing changes to the imported GitHub Repo

You can either push to an existing branch or create a new branch. You can also edit the commit message. Then click on create commit.&#x20;

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2Fi3QzjbRcJWMgAn8CFFk1%2FStep%205.png?alt=media&#x26;token=0ef9d0fe-762f-4904-b384-5773d9948033" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FxAgcZGGsw0MzcmXRxGsR%2FStep%206.png?alt=media&#x26;token=d8f1fec8-3ccb-4980-b97f-04a907a73f8d" alt=""><figcaption></figcaption></figure>

## Push your Dualite project to a new GitHub Repo

If you're starting a project from scratch on Dualite itself, you can click on the GitHub icon and Login it to GitHub

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FbpHmbNMvQIkpoCl36NT9%2FStep%201.png?alt=media&#x26;token=b440bae5-b7a9-41f2-afa3-ed97d99cefa2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2F7gJoWWTuffe3M319eymE%2FStep%202.png?alt=media&#x26;token=2ffb4a1c-e8bc-468e-81dc-2655ec0a0511" alt=""><figcaption></figcaption></figure>

Once connected, click again on the top-right GitHub icon and you can then **create a new repository.**&#x20;

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FSgqO4BMK7HK1Ozs73EEj%2FStep%203.5.png?alt=media&#x26;token=ebb37d74-f507-4ff7-8fca-1499cdf2908c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FYjoqkC9Ws6kKTXV52ev2%2FStep%204.png?alt=media&#x26;token=ea3bfedc-a5e0-44d5-af7b-aa9d648d78ad" alt=""><figcaption></figcaption></figure>

After creating a new repo, you can either push to an existing branch or create a new branch. You can also edit the commit message. Then click on create commit.&#x20;

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2Fi3QzjbRcJWMgAn8CFFk1%2FStep%205.png?alt=media&#x26;token=0ef9d0fe-762f-4904-b384-5773d9948033" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3249760354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV8GfqSvH6vHDgFIKWOOu%2Fuploads%2FxAgcZGGsw0MzcmXRxGsR%2FStep%206.png?alt=media&#x26;token=d8f1fec8-3ccb-4980-b97f-04a907a73f8d" alt=""><figcaption></figcaption></figure>

### Conclusion

GitHub integration allows you to build with Dualite on top of existing projects. This allows you to streamline your existing workflow and codebases, iterating at much faster speed. You can refactor, add new features, generate screens, fix bugs, and iterate on existing codebases at a dramatically faster pace. Every change stays consistent with your project’s architecture, helping you ship higher-quality updates in a fraction of the time.
