# Syncing Branches

By default, the project will use the branch specified as the "Default Branch" when connecting the Remote Git repository to the project.&#x20;

### Branch Setup

* You can sync an existing branch from the repo or create a new branch in Neurelo by using the Branch selector and clicking on the “New branch”

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FwFvYbGE8xIyr6W81j45D%2Frg30.png?alt=media&#x26;token=8717764b-e1b5-4eb1-826f-f3765ccc8ddf" alt="" width="563"><figcaption></figcaption></figure>

* You can enter the name of the branch and “Submit”

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FTunAKXEUc1k2sBDO0ExJ%2Frg301.png?alt=media&#x26;token=4954714b-6c7d-4c28-9d1b-610d8c9c5649" alt="" width="375"><figcaption></figcaption></figure>

* This will pull the branch from the remote git repository if it is found; or otherwise, create a new branch off the default branch.
* New changes will be pulled every 5 minutes, or you can manually pull the changes by clicking on the “Sync” button.

### Manual Sync

Once you push new commits to your branch, you can sync those changes in Neurelo by clicking on the “Sync” button.

* For example, let’s say we have a branch named `feature-1` at commit `8a9731...9f6553`

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FRMjVbMQV4VwLh462kEfA%2Frg31.png?alt=media&#x26;token=0d65a509-e6bb-41e7-962a-8471f4c61edd" alt="" width="563"><figcaption><p>Commit History in Neurelo</p></figcaption></figure>

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FiykGXFtU3Aeja39Ax2vM%2Frg32.png?alt=media&#x26;token=ac31d428-fb5e-4d87-90e7-c60f6954bb2a" alt="" width="563"><figcaption><p>Commit History in GitHub</p></figcaption></figure>

* If we push commits to the branch on the remote git, they will appear in the repository’s commit history. The new commit here is `f7559f8`.

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FAMTKQZ6Ya9q2k9ZGcYp9%2Frg33.png?alt=media&#x26;token=0849becf-7b3f-4d5a-b9c6-d6cfe792caf4" alt="" width="563"><figcaption></figcaption></figure>

* Then, we can go to Neurelo and click on Sync for the `feature-1` branch. This will start a sync in the background and pull the new commit.

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2Fo34R0hJYCjPlJ17z7jss%2Frg34.png?alt=media&#x26;token=62d94ecb-1c6c-44d4-a21e-33b8f584536e" alt="" width="563"><figcaption></figcaption></figure>

* If we open the Commit History in Neurelo, we see that the “new commit” with the same commit ID as GitHub appears.

<figure><img src="https://3406482452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzFLT4zSSU6J1uzbt5OF%2Fuploads%2FieC8X7Mu48b9J2oh4qXY%2Frg35.png?alt=media&#x26;token=b3969789-dde9-4039-a222-04ea7c89af2c" alt="" width="375"><figcaption></figcaption></figure>
