📖 Navigation: ← README | Quick Start | Setup Guide →
Get automated versioning running in under 5 minutes!
- Click "Use this template" on GitHub
- Name your repository
- Create repository
- Clone it:
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO# Clone with your project name
git clone https://github.com/CodeOOf/Git-Auto-Release.git my-project
cd my-project
# Remove Git history
rm -rf .git
# Set initial version
echo "0.1.0" > VERSION
# Replace template files with your own
rm README.md CONTRIBUTING.md
mv README.template.md README.md
mv CONTRIBUTING.template.md CONTRIBUTING.md
# Edit README.md and CONTRIBUTING.md with your project details
# Initialize new Git repo
git init
git checkout -b main
git add .
git commit -m "chore: initialize project from Git-Auto-Release template"
# Add your remote and push
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin main
# Create release branch
git checkout -b release
git push -u origin release
git checkout mainGitHub → Settings → Branches → Add rule:
main branch:
- ✅ Require pull request
- ✅ Require 1 approval
- ✅ Require status checks
release branch:
- ✅ Require pull request
- ✅ Require 2 approvals
# Create feature
git checkout -b feature/test-automation
echo "# Test" > test.md
git add test.md
git commit -m "feat: add test feature"
git push origin feature/test-automationOn GitHub:
- Create PR:
feature/test-automation→main - Merge it
Result:
- VERSION updates to
0.2.0-beta - Tag
v0.2.0-betacreated automatically
# Verify
git checkout main
git pull
cat VERSION # Shows: 0.2.0-beta
git tag -l # Shows: v0.2.0-beta| Action | Result |
|---|---|
feature/* → main |
MINOR bump: v0.2.0-beta |
bugfix/* → main |
PATCH bump: v0.1.1-beta |
main → release |
Release: v0.2.0 + GitHub Release |
git checkout main && git pull
git checkout -b feature/my-feature
# ... code ...
git commit -m "feat(scope): description"
git push origin feature/my-feature
# Create PR → main → merge → auto-tagged!git checkout main && git pull
git checkout -b bugfix/fix-issue
# ... fix ...
git commit -m "fix(scope): description"
git push origin bugfix/fix-issue
# Create PR → main → merge → auto-tagged!# Create PR: main → release
# Merge → Creates v0.2.0 tag + GitHub ReleaseUse structured commit messages for clarity:
<type>(scope): <description>
Example: feat(auth): add OAuth2 support
📖 For detailed commit guidelines, types, and examples, see Reference Guide - Commit Message Format
- ⚡ Reference Guide - Daily workflow commands and FAQ
- 📚 Branch Strategy - Detailed branching model
- 🎨 Customization - Adapt to your stack
- 📋 Workflow Examples - Real scenarios
⏱️ Time to First Tag: ~5 minutes
🔄 Maintenance: Zero - fully automated! ✨