Deploying Git Repositories with Vercel
Vercel allows for automatic deployments on every branch push and merges onto the production branch of your GitHub, GitLab, Bitbucket and Azure DevOps Pipelines projects.
Using Git with Vercel provides the following benefits:
- Preview deployments for every push.
- Production deployments for the most recent changes from the production branch.
- Instant rollbacks when reverting changes assigned to a custom domain.
When working with Git, have a branch that works as your production branch, often called . After you create a pull request (PR) to that branch, Vercel creates a unique deployment you can use to preview any changes. Once you are happy with the changes, you can merge your PR into the branch, and Vercel will create a production deployment.
You can choose to use a different branch as the production branch.
- GitHub Free
- GitHub Team
- GitHub Enterprise Cloud
- GitLab Free
- GitLab Premium
- GitLab Ultimate
- GitLab Enterprise
- Bitbucket Free
- Bitbucket Standard
- Bitbucket Premium
- Azure DevOps Pipelines
If your provider is not listed here, you can also use the Vercel CLI to deploy with any git provider.
Setting up your GitHub, GitLab, or Bitbucket repository on Vercel is only a matter of clicking the "New Project" button on the top right of your dashboard and following the steps.
For Azure DevOps repositories, use the Vercel Deployment Extension
After clicking it, you'll be presented with a list of Git repositories that the Git account you've signed up with has write access to.
To select a different Git namespace or provider, you can use the dropdown list on the top left of the section.