1.9 KiB
1.9 KiB
Git Setup Guide
Prerequisites
Since Git is not currently installed on this system, you'll need to install it first.
Windows Installation
-
Download Git for Windows:
- Visit: https://git-scm.com/download/win
- Download the latest version for Windows
-
Install Git:
- Run the installer
- Use default settings (recommended)
- Add Git to PATH during installation
-
Verify Installation:
git --version
Repository Setup
Once Git is installed, run these commands:
# Initialize Git repository
git init
# Create main branch
git checkout -b main
# Add all files
git add .
# Initial commit
git commit -m "Initial commit: Virtual Board Member AI System foundation"
# Add remote repository
git remote add origin https://gitea.pressmess.duckdns.org/admin/virtual_board_member.git
# Push to remote
git push -u origin main
GitFlow Branching Strategy
This project uses GitFlow branching strategy:
# Create develop branch
git checkout -b develop
git push -u origin develop
# For new features
git checkout -b feature/feature-name
# For hotfixes
git checkout -b hotfix/hotfix-name
# For releases
git checkout -b release/version-number
Pre-commit Hooks
After setting up Git, install pre-commit hooks:
# Install pre-commit hooks
pre-commit install
# Run manually if needed
pre-commit run --all-files
CI/CD Pipeline
The GitHub Actions workflow (.github/workflows/ci.yml) will automatically:
- Run tests on push/PR
- Check code quality
- Perform security scanning
- Build Docker images (on main branch)
Next Steps
- Install Git for Windows
- Run the repository setup commands above
- Configure your Git identity:
git config --global user.name "Your Name" git config --global user.email "your.email@example.com" - Install pre-commit hooks
- Start development on feature branches