Blog · 2026-11-17
Git-Style Versioning for Your App: Branches, Diffs, and Rollbacks in Workcraft
Named branches, commits, diffs, merges and rollback inside a low-code platform — and the honest places it differs from git.
You've built an app in Workcraft and it works. Now you want to try something risky — rebuild the intake form, rework the approval flow — without betting the working version on it. In a code project you'd git checkout -b experiment, break things freely, and merge or abandon the branch. Workcraft gives you the same workflow inside the platform: named branches, commits with history, diffs between any two points, conflict-aware merges, tags, and rollback — all under App Settings → Version Control → Manage Version Control — the app settings reference maps where version control sits among an app's settings.
This tutorial runs the whole loop on a real app and then explains what the model actually is — because Workcraft's versioning is git-style, and the places it differs from git matter more than the places it matches.
Prerequisites: an app you can experiment on, an appcreator (or account-admin) login, and a tenant plan that includes the app.versioning feature — Pro and Enterprise. On Free or Starter the version-control actions are unavailable. Inspecting history, diffs, and status is not feature-gated, so you can view version history on any plan — you just can't create it.

Step 1: Initialize version control
Open your app → App Settings → Version Control → Manage Version Control → Initialize Git Repository. The button appears in the un-initialized state, behind a confirm dialog; new apps are not auto-initialized — a fresh app reports uninitialized until you press it.
Initializing creates a main branch marked as the default and immediately writes an "Initial commit" authored by System. That first commit is important: it's a complete snapshot of the app as it exists right now, so even if you initialize late, your baseline is captured.
What is a commit, concretely? A stored snapshot of the app's full export document — the same structure produced by export/import, serialized with secrets excluded. That means connection credentials are never written into version snapshots; a commit can't leak your database password into history. The app-definition categories the system tracks and diffs are data sources, pages, flows, and workflows.
Step 2: Make a change, commit it
Edit something small — rename a page, add a column to a data source. Then back in Version Control, type a message and hit Commit to main (the button's label follows the current branch — on a feature branch it reads "Commit to feature/pipeline-v2").
The platform snapshots the current app export, records a new commit with your name and timestamp, links it to the branch's previous head as its parent, and moves the branch pointer forward. You get back a 40-character commit hash — deliberately git-flavored.
Step 3: Branch for the risky work
New Branch → name it experiment/intake-redesign, source = main. A branch is just a name plus a pointer to a commit — creating one copies the source branch's head. It's free and instant; nothing is copied or restored.
Now — the single most important thing in this post. In git, checkout -b changes which code you're editing. In Workcraft, there is one working app. Selecting a different branch in the UI only changes which name your next commit gets tagged with — it does not change the app's content. The branch dropdown is a commit destination, not a working-tree switch. To actually change the app's content to match another point in history, you roll back to a commit (Step 6), not a branch.
So the real workflow is: commit on main first (your safety net), switch the commit destination to experiment/intake-redesign, then edit freely and commit — your commits land on the experiment branch's line while main keeps pointing at the known-good snapshot.
Step 4: See what changed — the diff
Made a mess of changes and want to know exactly what's different from main? Pick any two commits and compare them. The comparison breaks down per category — data sources, pages, flows, workflows — into added, removed, and modified lists. Modified items come with property-level diffs: each changed field with its old and new value.
Each row in the Commit History Timeline also has a Diff button ("Compare with parent" — disabled on the initial commit, which has none) that opens a side-by-side comparison modal. Items are matched by id, falling back to name — which means a renamed item without an id match can appear as a remove+add pair rather than a modification. Worth knowing before you panic over a scary-looking diff.

Step 5: Merge with conflict resolution
The experiment worked. Bring it home: the merge form asks for a source branch, a target branch, and an optional message, then Preview & Resolve Merge classifies every item across the four categories:
- Added in source — exists only on the experiment branch; will be added to main
- Kept from target — exists only on main; stays
- Unchanged — identical in both
- Conflict — the same item (matched by id/name) exists in both heads but differs
Every conflict appears as a card with radio buttons — Accept Source or Keep Target — plus a JSON preview of each side's value, and a Complete Merge button. No conflicts → "Safe to perform automatic merge." Anything left unresolved defaults to source wins — the branch you're merging from takes precedence — so review the conflict list rather than letting defaults decide.
After merge, the merged snapshot is restored onto the live app and a merge commit is written to main's history. Delete the experiment branch if you're done — the default branch can't be deleted, and deleting a branch does not delete its commits (they remain in history, filterable in the timeline).
Step 6: Tag the release, and roll back when it all goes wrong
Before a big demo or a risky change, tag the known-good point: New Tag takes a name, an optional description, and the commit to point at. Tags are named, described pointers to commits — easier to find than a hash in a long timeline.
Rollback is a checkout: picking a commit and confirming restore puts that commit's snapshot back onto the live app — the same snapshot-restore path used by import and merge. Each timeline row's Rollback Preview button opens a modal showing the commit's hash, branch, message, author and date, per-category item counts (DataSources/Pages/Flows/Workflows) and their names, a warning banner ("this action will replace the active application state"), and Cancel/confirm buttons — the confirm is styled danger-red. Two cautions the UI can't save you from:
- Rollback overwrites the current app state. Work you haven't committed is gone — there is no stash. Commit first, even a "wip" commit.
- Rollback moves the app, not a branch pointer. It's a restore operation; the normal way to record it is to commit the restored state afterward if you want it in history.
What this doesn't cover yet
Verified-in-code limits and honest caveats:
- No three-way merge. Merge compares the two branch heads directly — there's no merge-base ancestor. Git can tell "changed only on the left" from "changed on both, differently"; Workcraft can't. Two different edits to the same page are a whole-item conflict resolved by picking one side entirely — there's no field-level merge.
- One working tree. Branch switching doesn't swap app content (see Step 3). It also means there's no guard against committing main-intended work onto the wrong branch — the commit just gets that branch's label. If you mis-commit, roll back to the right commit and recommit.
- Commit hashes aren't content-addressable. The hash mixes in a random component and timestamp, so identical content committed twice yields different hashes — you can't verify snapshot identity by comparing hashes.
- Granularity is the whole app. You can't version a single page or flow; every commit is the full export document. On large apps, expect snapshot size to track app size.
- Reads are plan-free, writes are Pro+. Anyone can view history, diffs, and status; every mutating action requires the
app.versioningfeature. Plan accordingly if you downgrade.
Next in the series: export/import — what the same snapshot format does with secrets when it crosses tenant boundaries.
Want to try it? Get a demo workspace or read the docs.