Quick Actions
git init
Description
Initialize a new Git repository in the current directory.
Command
git init
Examples
Initialize a new repository
git init
Initialize a bare repository
git init --bare
Initialize with custom git directory
git init --separate-git-dir=/path/to/git-dir
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
--bare |
string | No | Create a bare repository |
--template=<template-directory> |
string | No | Specify the template directory |
--separate-git-dir=<git-dir> |
string | No | Separate git directory from working tree |
Command Info
Category:
Repository Management
Type:
Git
Views:
7
Status:
Active
Tags
repository
initialization
setup