# Documentation on how to sync Github repo and opencode repo?

**URL:** https://forum.opendesktop.org/t/documentation-on-how-to-sync-github-repo-and-opencode-repo/19641
**Category:** Opencode.net - Libre Coding/CI Services
**Created:** [March 26, 2021, 6:36am UTC](https://forum.opendesktop.org/t/documentation-on-how-to-sync-github-repo-and-opencode-repo/19641 "2021-03-26T06:36:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ransome](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/ransome/32/71383_2.png) [@ransome](https://forum.opendesktop.org/u/ransome)
#### Post date: [March 26, 2021, 6:36am UTC](https://forum.opendesktop.org/t/documentation-on-how-to-sync-github-repo-and-opencode-repo/19641/1 "2021-03-26T06:36:54Z")

</div>

Hi there,

I’m using Github for hosting my app, but I would like to switch to something less Microsoft. Like opencode 🙂

Anyhow, for the time of transition I want the mirror my Github repo with an opencode repo. Importing it was not a problem, but syncing it just doesn’t seem to work.

Following the description text in the repo settings on opencode leads to

 ![image](https://forum.opendesktop.org/uploads/default/original/3X/e/7/e7b72dab5e6e3708df4201dde448898585d39835.png)

Username and password are correct. But I must add, that I use 2FA on Github, but I can’t find to add a personal token on opencode to circumvent it.

Could you give me some advice on how to fix this or where to look specifically to solve this?

Thanks a lot!  
ran

---

<div class="post-metadata">

### Author: ![ransome](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/ransome/32/71383_2.png) [@ransome](https://forum.opendesktop.org/u/ransome)
#### Post date: [March 26, 2021, 5:00pm UTC](https://forum.opendesktop.org/t/documentation-on-how-to-sync-github-repo-and-opencode-repo/19641/2 "2021-03-26T17:00:17Z")

</div>

I solved it by using a Github Action, that pushes changes to my [opencode.net](http://opencode.net) repo as described here: [https://github.com/marketplace/actions/mirror-to-gitlab-and-run-gitlab-ci](https://github.com/marketplace/actions/mirror-to-gitlab-and-run-gitlab-ci)
