📢 New: Connect your Anvil apps to GitHub repositories

Hi everyone!

We are very excited to announce our new GitHub integration! You can now store your app’s source code in a GitHub repository and make use of GitHub’s powerful version control tools for managing your codebase and collaborating on projects. You don’t need to be a Git expert to collaborate using GitHub: Anvil takes care of keeping your app and GitHub repository in sync.

Learn more in our documentation: Anvil Docs | Collaborating with Git and GitHub

Streamlined development and collaboration

The Anvil GitHub integration fits neatly into your workflow. On Anvil’s Business Plan and above, you can create private repositories to store and manage Anvil code with the rest of your company’s codebase. Open issues, create pull requests, review changes and manage conflicts within GitHub. Anvil’s built-in version control tab lets you manage your repository and keep track of code changes from within your app.

Create and contribute to open-source projects

All Anvil users can connect to public repositories for free, so you can create and contribute to open-source projects. Publish your Anvil code on GitHub and share it with other Anvil developers, or open pull requests in other repositories to contribute to Anvil community projects. Show off your Anvil code on your GitHub profile and build a portfolio of your Anvil projects.

How does it work?

To get started with the GitHub integration, you’ll need to either save an app to a new GitHub repository or clone an existing repository into Anvil. No need to be a pro at Git to get started: all your changes will automatically be pushed to the repository, and other developers’ changes will show up live in your app.

Want to use Git but don’t want to use GitHub? No problem. Anvil supports other Git remotes as well.

Ready to get started? Check out our GitHub integration quickstart tutorial or dive right in and start building an app.

Happy coding!
Brooke

19 Likes

Truly Awesome Feature!
Love it :+1:

2 Likes

Amazing. Once I try this with a public repo, I’m getting the business plan to do this on my private repos.

2 Likes

A post was split to a new topic: [FIXED] GitHub clone failure

Probably a 0.1% type of question: if I create some private repos while on a Business plan then downgrade to the Professional plan, will those repos then be made automatically public? My company only has use for the higher tier for like 6 months of the year, just don’t want everything to appear out of nowhere

Hi @kaleb - good question!

Anvil will never modify the visibility of your repositories. If you move to a plan that doesn’t support private GitHub repositories, those remotes will just stop syncing with your app until you upgrade again.

2 Likes

I want to use gitlab instead of github if possible. When I add it as a remote, it throws an error saying it can’t redirect me to log in.

I’m not very git savvy - can anyone suggest what I might be doing wrong please?

Ignore me - I needed to create a project under the group. I thought the project would get created automagically for me!

Well, this does look promising!

Cheers, Anvil!

1 Like

Awesome integration. One thing that I noticed is that the username in the commit history shows as the email you use on your anvil account. I try to keep my email on my account private to avoid phishing attempts and unsolicited contact. It would be great if we could have a user name we set show up there instead by default instead of an account email.

2 Likes