git_init
Initialize a new Git repository in a specified directory within permitted paths, creating the directory if absent. Set the initial branch to 'main' or customize it, enabling version control for development workflows.
Instructions
Initialize a new Git repository. Creates a new Git repository in the specified directory. If the directory doesn't exist, it will be created. Directory must be within the allowed directory.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
initial_branch | No | Name of the initial branch (defaults to 'main') | main |
path | Yes | Path where to initialize the repository |