git-multibranch
Installation
SKILL.md
Git Multi-Branch Deployment
Overview
This skill provides guidance for setting up Git-based deployment systems where multiple branches (e.g., main, dev) automatically deploy to different web server locations via post-receive hooks. It covers SSH configuration, Git repository setup, web server configuration, and automated deployment workflows.
Prerequisites Verification
Before starting, verify all required tools and configurations:
- Check for required packages:
git,openssh-server,sshpass(for testing), web server (nginx/apache) - Verify port availability for SSH (22) and HTTP/HTTPS (80/443)
- Confirm user creation permissions
- Set Git default branch name upfront:
git config --global init.defaultBranch main