]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-init.txt
Merge branch 'js/default-branch-name'
[thirdparty/git.git] / Documentation / git-init.txt
index adc6adfd380beb88cfc9e95ad9be39d874b4890e..ddfe265da5b6524f30d972bfea990bb2a89b5611 100644 (file)
@@ -10,7 +10,8 @@ SYNOPSIS
 --------
 [verse]
 'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
-         [--separate-git-dir <git dir>] [--object-format=<format]
+         [--separate-git-dir <git dir>] [--object-format=<format>]
+         [-b <branch-name> | --initial-branch=<branch-name>]
          [--shared[=<permissions>]] [directory]
 
 
@@ -67,6 +68,12 @@ repository.
 +
 If this is reinitialization, the repository will be moved to the specified path.
 
+-b <branch-name::
+--initial-branch=<branch-name>::
+
+Use the specified name for the initial branch in the newly created repository.
+If not specified, fall back to the default name: `master`.
+
 --shared[=(false|true|umask|group|all|world|everybody|0xxx)]::
 
 Specify that the Git repository is to be shared amongst several users.  This