Skip to main content
Xano supports one-way Git sync to /images/icons/GitHub-light.svg GitHub and /images/icons/gitlab.svg GitLab. This feature makes your XanoScript a first-class citizen in your development workflow, while keeping Xano as the source of truth. Publish your XanoScript to GitHub or GitLab to keep a versioned copy of your code outside of Xano for disaster recovery, compliance, or auditing. Or open source your XanoScript to the world to get feedback, contributions, and help from the community.

How It Works

  • Write code in the Xano UI or in your IDE with the XanoScript VS Code extension.
  • Sync to Xano β€” all changes flow through Xano first.
  • Push to Git β€” Xano can export your latest code to GitHub or GitLab.

Benefits of Git Sync

πŸ” Version Control

Every sync creates a new commit in your Git repo. Track the history of changes and roll back when needed.

🧰 Collaboration

Use branches, pull requests, and code reviews. Non-Xano teammates can review and contribute using familiar Git tools.

☁️ Backup & Transparency

Keep a secure, versioned copy of your code outside of Xano for disaster recovery, compliance, or auditing.

πŸ”„ Automation & Integration

Plug your XanoScript into CI/CD pipelines, linters, and security scanners. Git sync bridges Xano into your existing engineering ecosystem.

What Git Sync Is Not

❌ Git sync is not a way to deploy code into Xano.
❌ You cannot push changes from GitHub/GitLab into Xano.
βœ… All changes must flow through Xanoβ€”either via the UI or the XanoScript VS Code extension.

Example Workflow

  1. Jamie edits an API function in VS Code using the XanoScript extension.
  2. The changes sync directly to Xano.
  3. From Xano, Jamie pushes the latest code to GitHub.
  4. The team reviews the diff in GitHub, merges a pull request, and maintains a clean version history.

Using Git Sync in Xano

1

From your workspace dashboard, click the gear icon in the top-right corner, and choose Git Sync.

git-sync-20251008-125901
2

In GitHub, create a new repository if you haven't already.

3

In Xano's Git Sync menu, provide the URL of your GitHub repository.

git-sync-20251008-130738
1

Have a private repository or want to use SSH? Click the 'Generate Key' option.

git-sync-20251008-130657
2

In GitHub, head to your repository settings and add the SSH key you generated in Xano.

git-sync-20251008-130218

FAQ

Why can’t I push changes from GitHub into Xano?
Xano treats itself as the single source of truth for XanoScript.
Pulling code from Git would create conflicts, dependencies, and merge issues. Instead, use the XanoScript VS Code extension to push changes directly to Xano. Git is your mirror for history, backup, and collaboration.
⌘I