Skip to main content

GitHub

About 3 min · Automatic sync

Keep a copy of your app's code somewhere you own. TatbiQ makes a private repository, a folder for your code, in your GitHub account, and every new version you save in History is synced there.

Why
Back it upA safe copy outside TatbiQ
Own your codeIt lives in your own account
Work with a developerGive them access on GitHub

Before you start​

A free GitHub account. You can create one while connecting. See GitHub's Creating an account.

Open GitHub​

Open Settings, then Integration Hub, and select GitHub. In the Hub's catalog, GitHub shows Set up GitHub, or Open GitHub settings once it's set up.

Set it up​

Connect GitHub

Select Connect GitHub. You sign in on github.com, then come back here.

Choose where to keep it

Under GitHub account, pick Your personal account or A team you belong to, name the repository, and select Create private repository. Only you and people you invite can see it.

Make the first sync

Select Sync now. It usually takes under a minute. If your app has no saved version yet, the first one syncs by itself once it's saved in History.

When it's done, the page shows Your code on GitHub with Up to date.

GitHub Overview in the Integration Hub showing Your code on GitHub, Up to date status, sync facts, and Shortcuts
After setup, the Overview shows your private repository, sync status, and shortcuts to share, download, or browse versions on GitHub.

How syncing works​

With Sync new versions automatically on, every new version saved in History is synced. It's on by default; turn it off on the Settings tab. You can always select Sync now.

It only goes one way

Changes made on GitHub don't come back into TatbiQ. Keep making changes here, in chat.

StatusWhat it means
Up to dateGitHub has your newest saved version.
Newer version waitingA saved version isn't on GitHub yet. It syncs by itself shortly, or select Sync now.
Last sync didn't finishYour app is fine, and GitHub still has the version before it. Select Sync now to try again.
Sign in againSelect Sign in to GitHub again. Your app and the repository are fine.

See Checkpoints for how versions are saved in History.

Shortcuts​

The Overview tab has shortcuts that open github.com. You need to be signed in to GitHub with access to the repository.

ShortcutWhat it does
Share with a developerInvite them to collaborate in GitHub. See GitHub's Inviting collaborators.
Download your codeA ZIP of the newest synced version. See GitHub's Downloading source code archives.
All saved versionsEvery synced version, by date.

Change the repository​

On the Settings tab, select Change next to Repository on GitHub. Create a new private repository, which starts with your newest version, or go back to a repository this app used before, which carries on where it left off. The old repository and its history stay on GitHub.

Stop syncing​

On the Settings tab, select Stop under Stop syncing to GitHub, then confirm. New versions are no longer synced. The repository and all its versions stay on GitHub, and your GitHub account stays for your other apps. You can start again any time with the same repository or a new one.

GitHub accounts in your workspace​

Your whole workspace shares its GitHub accounts, so every app can sync to them. They're listed on the Settings tab under GitHub accounts in this workspace, with + Add a GitHub account and Remove.

Removing an account stops syncing for every app that uses it. Everything on GitHub stays. It only removes the account from TatbiQ: to also take back TatbiQ's access, remove TatbiQ in that account's GitHub settings. See GitHub's Reviewing and revoking GitHub Apps.

Troubleshooting​

You seeWhat to do
"<owner>/<name> already exists and holds other code."TatbiQ never syncs over someone else's code. Pick another name.
Last sync didn't finishSelect What went wrong for details, then Sync now.
Newer version waiting for a whileAutomatic sync is off. Select Sync now, or Turn on automatic sync.
Sign in againSelect Sign in to GitHub again.
A team doesn't appear under GitHub accountThe team may need to allow TatbiQ on GitHub. Ask a team owner, then connect again.

FAQ​

Is my repository public?​

No. It's always private: only you and people you invite can see it.

Can I edit code on GitHub and bring it back?​

No. Syncing only goes one way. Keep making changes in chat.

Does stopping or removing delete my code?​

No. The repository and its history always stay on GitHub.

Can a developer work on my app?​

They can read and copy the code on GitHub. Share it with Share with a developer. Their changes on GitHub don't come back into TatbiQ.