speckit-git-initialize

Initialize a Git repository with an initial commit in Bash or PowerShell.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/sdk451/claude-gdrive --skill speckit-git-initialize-sdk451
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/sdk451/claude-gdrive/tree/main/.cursor/skills/speckit-git-initialize
Command: npx skills add https://github.com/sdk451/claude-gdrive --skill speckit-git-initialize-sdk451

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Initialize a Git repository in the current project directory if one does not already exist.

Core Features & Use Cases

  • Initialize a new Git repository when none exists, creating an initial commit automatically.
  • Supports Bash and PowerShell workflows with dedicated scripts and a fallback path.
  • Guardrails ensure no action if a repository already exists and provide clear messages for failures.

Quick Start

From the project root, run the appropriate initialization script to create the repository and initial commit.

Frequently Asked Questions about speckit-git-initialize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a Git repository and create an initial commit?

You can initialize a Git repository and create an initial commit by running the appropriate script from your project root, which executes git init, git add, and git commit with a default message.

Does the Git initialization script work with both Bash and PowerShell?

Yes, the Git initialization script supports both Bash and PowerShell environments, providing dedicated scripts for each and a fallback path if extensions are unavailable.

What happens if I run the repository initialization script in a directory that already has a Git repo?

If a Git repository already exists in the current project directory, the script takes no action to prevent overwriting, ensuring your existing repository history remains safe.

How do I set up a local project with a clean initial Git commit?

To set up a local project with a clean initial Git commit, run the initialization script from your project root to automatically stage all current files and record the first commit.

Are there limitations when using the Git init script if shell extensions are unavailable?

If shell extensions are unavailable, the Git init script limitations are mitigated by a fallback path that ensures the repository initialization and initial commit still execute properly in Bash or PowerShell.