원클릭으로
speckit-git-initialize
Initialize a Git repository with an initial commit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Initialize a Git repository with an initial commit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Auto-commit changes after a Spec Kit command completes
Create a feature branch with sequential or timestamp numbering
Submit the current stack as pull requests using Graphite (gt submit)
| name | speckit-git-initialize |
| description | Initialize a Git repository with an initial commit |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"git:commands/speckit.git.initialize.md"} |
Initialize a Git repository in the current project directory if one does not already exist.
After ensuring the Git repository exists, the script also initializes the Graphite CLI (gt init --trunk <trunk>) when gt is installed and not yet configured for the repo. The trunk is detected from origin/HEAD, falling back to main/master. This is idempotent and skips silently when gt is missing or already initialized.
Run the appropriate script from the project root:
.specify/extensions/git/scripts/bash/initialize-repo.sh.specify/extensions/git/scripts/powershell/initialize-repo.ps1If the extension scripts are not found, fall back to:
git init && git add . && git commit -m "Initial commit from Specify template"git init; git add .; git commit -m "Initial commit from Specify template"The script handles all checks internally:
git init, git add ., and git commit with an initial commit messageReplace the script to add project-specific Git initialization steps:
.gitignore templatesgit config init.defaultBranch)On success:
[OK] Git repository initializedIf Git is not installed:
specs/)If Git is installed but git init, git add ., or git commit fails: