Where to Host the Git Repository
When creating an API Repository, you need to choose where to host your Git repository:
Option 1: Host on APIGit (Recommended)
Store your API Repository directly on our platform. This is the most efficient option since APIGit features native Git support and provides a GitHub-similar experience, giving you a single platform for both API development and Git-based version control.
Even with this option, you can still synchronize your APIGit repository with third-party providers by configuring Push Mirrors.
Option 2: Connect to Third-party Git Providers
Connect to GitHub, GitLab, Bitbucket, or any other Git provider. In this scenario, APIGit acts as a Git client, maintaining two-way synchronization with your designated third-party Git repository:
- Any updates from your third-party Git repository will automatically synchronize to APIGit
- Any changes made in APIGit will be pushed to your third-party Git repository
Since your third-party repository serves as the single source of truth in this case, some features in APIGit will be limited. Pull requests/reviews and branch protection rules will need to be managed through your third-party Git provider.