What problem does it solve?
This Skill initializes a Git repository in the current project directory and creates an initial commit, streamlining project setup and version control readiness.
Core Features & Use Cases
- Detects whether Git is available and whether the current directory is already a repository.
- Executes the initialization sequence: git init, git add ., and a first commit with a clear message.
- Provides a fallback path if project-specific scripts are present, allowing customized initialization steps (e.g., using .specify/extensions/git/scripts/*).
- Graceful degradation: if Git is not installed, the process is skipped and the project continues to function.
- Customization options: adjust the default commit message, ignore certain files, or integrate with a template.
Quick Start
Execute the Bash script at .specify/extensions/git/scripts/bash/initialize-repo.sh or the PowerShell script at .specify/extensions/git/scripts/powershell/initialize-repo.ps1 from the project root, or fall back to running git init, git add ., and git commit -m 'Initial commit' if those scripts are unavailable.