Name

init

Synopsis

git init [-q] [--bare] [--shared=false|group|all]

Create a new Git repository in the current directory.

Options

-q, --quiet
--bare
--shared=false|group|all

Examples

To create a new repository with default settings:

$ git init

To create a new bare repository that will be shared with everyone in your Unix group:

$ git init -bare --shared=group

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.