Get started
Last updated
Last updated
© 2024 UI Bakery
A newly created UI Bakery app, or an app that is already developed, can be connected to a Git repository. Here are the steps on how to get started:
Create a new app or open an existing one.
Navigate to your Git provider and create a new https://github.com/new repository. The repository must be empty.
In UI Bakery, click the Connect to Git button in the top left corner.
Copy an ssh repository URL (such as git@github.com:user/fictional-octo-happiness.git
) and paste it into the Git repository URL field in the Git tab of the app settings.
Copy an SSH key suggested by UI Bakery and create a new key under the Deploy keys settings. Here's a guide on how to do this on GitHub:
Open your repository settings and go to Deploy keys.
Click Add deploy key and paste the key.
Click Allow write access. - Click Add key.
Press Connect and wait for the app to be pushed to the Git repository.
Now your app is converted to a Git repository and you can start working with it.
1. Branches selector - switch between branches.
2. Sync branches - sync branches list with the Git repository.
3. Pull - pull the latest changes from the selected branch.
4. Create Pull Request - create a pull request for the selected branch.
5. Commit & Push - commit and push the changes to the selected branch.
Here's an overview of the steps you need to take to develop a new feature:
1. Go to the main branch and pull the latest changes.
2. Create a new branch from the main branch.
3. Make changes to the app.
4. Commit and push the changes to the Git repository.
5. Create a pull request to merge the changes to the main branch.
6. Once the PR is approved and merged, pull the changes to the UI Bakery main instance.
Once the changes are pulled to the UI Bakery instance, you can review and deploy them using the standard UI Bakery workflow.
UI Bakery app is split into multiple files and folders, which makes it easy to avoid merge conflicts. However, if you stumble upon a merge conflict while merging a PR, this means that the main branch was changed while you were working on your feature branch.
To resolve the conflict, you need to pull the latest changes from the main branch to your feature branch and resolve the conflicts manually using the Git provider UI.
When Git is connected to your app — it's no longer possible to restore versions from the UI Bakery's Release History.
If you need to revert to the previous version — synchronize your changes with the branch and pull it back to UI Bakery using the following steps:
Git:
git revert #{commit_hash}
git push
UI Bakery: