Why connect GitHub
Connecting a GitHub repository gives you a full copy of your application's source and a normal developer workflow around it. It is also the way to export your whole project, since there is no download-as-archive button.
How the two-way sync works
- After every prompt, OXDAR commits and pushes the changes to a develop branch.
- Before each prompt, OXDAR pulls the latest changes, so edits you made in GitHub are included.
- When you publish, OXDAR opens a pull request and merges it into the main branch.
Connect a repository
- Open the project's settings or GitHub option in the workspace.
- Authorize access to your GitHub account when asked.
- Choose the repository to use.
- Run a prompt and check that a develop branch receives the commit.
You can also start from an existing repository by using the GitHub import option on the dashboard.
Good habits
- Make your own changes on a separate branch and merge them into develop before running the next prompt.
- Avoid editing the same file in GitHub and in the OXDAR code editor at the same time.
- Never commit secrets. Use More → Secrets for API keys.
If the sync reports a problem, the troubleshooting article lists common checks.