Git Settings
Once you have connected a Git repository to your project, select the Git menu item from your project settings page to edit your project’s Git settings. These settings include:
Connected Git Repository
- Managing production branch name: Ensure the correct branch is specified for production deployments.
- Git Large File Storage (LFS): Enable or disable LFS support to manage large files in your repository.
Git Large File Storage (LFS)
If your repository contains LFS objects, enable LFS from project settings. Epycbyte will pull these objects when enabled. Ensure to redeploy after enabling LFS.
Deploy Hooks
Epycbyte supports deploy hooks, which are unique URLs that trigger deployments via HTTP POST requests. Check the deploy hooks documentation for more details.
Ignored Build Step
By default, Epycbyte creates a new deployment and build for each commit pushed to your connected Git repository. To skip the build step:
- Select a project from the dashboard.
- Go to Settings > Git.
- In the Ignored Build Step section, choose the desired behavior:
- Automatic: Always create a new build.
- Only build production/preview: Build only when
epycbyte_ENVis set accordingly. - Only build if changes: Build only when there are changes in the Git diff.
- Custom commands: Run specific scripts or commands to control builds.
Disconnecting Git Repository
To disconnect a Git repository:
- Select a project from the dashboard.
- Go to Settings > Git.
- Under Connected Git Repository, click Disconnect.
This guide provides comprehensive details on managing Git settings for your Epycbyte project. Use it to optimize deployments and manage build steps effectively.