# Keep github code up to date

**URL:** <https://community.baserow.io/t/keep-github-code-up-to-date/270>\
**Category:** Uncategorized\
**Created:** [February 22, 2022, 1:19am UTC](https://community.baserow.io/t/keep-github-code-up-to-date/270 "2022-02-22T01:19:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravikapoor101](https://community.baserow.io/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ravikapoor101](https://community.baserow.io/u/ravikapoor101)\
**Post date:** [February 22, 2022, 1:19am UTC](https://community.baserow.io/t/keep-github-code-up-to-date/270/1 "2022-02-22T01:19:31Z")

</div>

I googled source and have been using github code and running into issues. After some search I found updated code is on gitlab.

To avoid others running into old code, I recommend we sync the two for free.

# Sync Gitlab to Github (easy)

This one is simple. You could set up some CI/CD yourself. But Gitlab will automatically do this for you.  
As per [Github and Gitlab sync - DEV Community](https://dev.to/brunorobert/github-and-gitlab-sync-44mn)

1. Go to “Settings \> Repository \> Mirroring repositories”
2. Enter your Github repo with your username in front `https://<github username>@github.com/path/to/your/repo.git`
3. In the password field, enter your Github token
4. Select push (this requires a subscription)
5. Press Mirror repository

From now on, changes to Gitlab will be mirrored to Github.

---

<div class="post-metadata">

**Author:** ![nigel](https://community.baserow.io/user_avatar/community.baserow.io/nigel/32/51_2.png) [@nigel](https://community.baserow.io/u/nigel)\
**Post date:** [February 22, 2022, 10:48am UTC](https://community.baserow.io/t/keep-github-code-up-to-date/270/2 "2022-02-22T10:48:04Z")

</div>

Hm thats weird, we already have this setup and enabled and I do see the mirroring working:

> **[Commits · bram2w/baserow](https://github.com/bram2w/baserow/commits/master)**
>
> Baserow is an open source no-code database tool and Airtable alternative. This is a mirrored repository, the official one is hosted on https://gitlab.com/bramw/baserow. - Commits · bram2w/baserow

> **[Commits · bram2w/baserow](https://github.com/bram2w/baserow/commits/develop)**
>
> Baserow is an open source no-code database tool and Airtable alternative. This is a mirrored repository, the official one is hosted on https://gitlab.com/bramw/baserow. - Commits · bram2w/baserow

Perhaps you were checking out master from github which is a branch we only update with the releases?

---

<div class="post-metadata">

**Author:** ![bram](https://community.baserow.io/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bram](https://community.baserow.io/u/bram)\
**Post date:** [February 22, 2022, 1:39pm UTC](https://community.baserow.io/t/keep-github-code-up-to-date/270/3 "2022-02-22T13:39:30Z")

</div>

Hey @ravikapoor101, welcome to the Baserow community!

Both the GitHub and GitLab repositories are mirrored. Or at least the `develop` and `master` branch mirrored and should be identical. Is there a difference that you could point us to?
