© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
63 replies
ali512

how to connect one github repo to different supabase branch projects

I have an app that has two github branches (main, development) which currently link to supabase branches (main, development).

when I swtich branches in my editer, and run db pull or link status it always points the project to the main project branch project ref. why is this? What is the best practice to handle a prod and development branch?

I want my supabase UI to be the source of truth, but im super confused how supabase migrations or schemas work. I need to keep them up to date with the remote db, but how?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Connect to 2 different Supabase projects from the same user
SupabaseSSupabase / help-and-questions
13mo ago
How to create Supabase branch on GitHub branch push rather than on Pull Request?
SupabaseSSupabase / help-and-questions
13mo ago
How to combine 2 Supabase projects?
SupabaseSSupabase / help-and-questions
2w ago
Supabase Github Integration issue (branch does not exist)
SupabaseSSupabase / help-and-questions
4mo ago