[Documentation](https://fluxnative.app/docs) / Build your app

# Sync with your own git remote

Sync with any git remote from your computer: GitHub, GitLab, Bitbucket or your company's server, both ways, signed in with your own git.

## Set it up

1. In [FluxNative Desktop](https://fluxnative.app/download), open the app's **Source** tab and click **GitHub** in its bar. The dialog is **Sync with git**.
2. Click **Set up**. Enter the **Remote URL** (https or ssh), the **Branch** and, if the app sits in a folder of the repository, the **Folder**.
3. Click **Start syncing**. Git on your computer signs in with its own keys: never put a password or token in the URL.
4. If the branch already has files, the dialog asks first. FluxNative's files replace those with the same names; your other files and the branch's history stay.

## Who syncs

- One side syncs at a time, and the dialog says which: **Synced by this computer**, another computer by name, or **FluxNative**, with the last sync.
- While that computer runs, your app's changes are pushed and the branch's changes come in as one version you can undo.
- **Sync from this computer** moves syncing to the computer you are on. **Let FluxNative sync** keeps syncing with every computer off; it needs the app's GitHub connection. Both ask first.
- Nothing moves while the syncing computer is off. After 7 days the dialog says **Sync paused** and offers both.

## When it needs you

- The same lines changed on both sides, or what comes in looks like a password or key: the dialog shows the pull. Pick a side for each file, then pull.
- The dialog also says when git on the computer cannot sign in, the remote is unreachable, or the remote refused a push.

**Note:** The remote's URL is kept without credentials, and shown only to members who may take the code out (**Export source** and **View source and download builds**). On the web, the dialog shows where the sync stands and the handovers; the setup is in the desktop app.

## Related

[Keep your app folder up to date](https://fluxnative.app/docs/keep-your-app-folder-up-to-date) · [Export your source](https://fluxnative.app/docs/export)

Previous: [Keep your app folder up to date](https://fluxnative.app/docs/keep-your-app-folder-up-to-date) · Next: [Build from a Figma design](https://fluxnative.app/docs/figma)

---

Sync with any git remote from your computer: GitHub, GitLab, Bitbucket or your company's server, both ways, signed in with your own git.

Page: https://fluxnative.app/docs/sync-with-your-own-git-remote
