Hey there! In this blog post, we're going to dive into Xano's brand new branch merging features, which are a total game-changer for backend development. These features are especially useful when you're iterating on features or working with a team, providing a more traditional development environment within Xano's no-code platform.
Branch merging is a concept that allows you to create separate branches of your codebase, make changes in isolation, and then merge those changes back into the main branch (often called the "master" or "production" branch). This workflow is common in traditional software development, and it helps teams collaborate more effectively, test new features without impacting the live application, and manage code changes in a organized manner.
Let's start by creating a new branch in Xano. Here's how you do it:
Now you have a separate branch where you can make changes without affecting your live APIs.
With your new branch created, you can start making changes to your APIs, functions, tasks, or add-ons. Let's make a simple change to an existing API endpoint:
Once you've made and published your changes in your new branch, it's time to merge those changes back into your main branch. Here's how:
Xano will now merge your changes from the source branch into the destination branch. You can switch back to the destination branch and verify that your changes have been applied successfully.
One important thing to note is that Xano will not allow you to merge branches if there are drafts (unpublished changes) in either the source or destination branch. If you attempt to merge branches with drafts, you'll see a warning message.
To resolve this, you have two options:
By providing granular control over which items are merged, Xano ensures that you don't accidentally publish drafts or overwrite work in progress.
Xano's new branch merging features bring a level of flexibility and collaboration to the no-code backend development process. Whether you're working solo or with a team, these features will help you iterate on features, test changes in isolation, and manage your codebase more effectively. Give them a try and let us know what you think!
If you have any questions or need further assistance, feel free to leave a comment below, reach out to us via the support chat in Xano, or join the Xano community. Happy coding (or no-coding)!
This transcript was AI generated to allow users to quickly answer technical questions about Xano.
I found it helpful
I need more support