From 9c2d5b51a618edd413a19585ec725e294e65b0e4 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 19 May 2021 12:20:16 -0300 Subject: [PATCH] git-init: add --initial-branch example (#5990) --- pages.es/common/git-init.md | 6 +++++- pages/common/git-init.md | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pages.es/common/git-init.md b/pages.es/common/git-init.md index 1fd55af033..c86b2caf39 100644 --- a/pages.es/common/git-init.md +++ b/pages.es/common/git-init.md @@ -7,7 +7,11 @@ `git init` -- Inicializa un repositio usando SHA256 como hash del objeto (requiere la versión 2.29+ de Git): +- Inicializa un repositorio con un nombre especifico para la rama inicial: + +`git init --initial-branch={{nombre_de_la_rama}}` + +- Inicializa un repositorio usando SHA256 como hash del objeto (requiere la versión 2.29+ de Git): `git init --object-format={{sha256}}` diff --git a/pages/common/git-init.md b/pages/common/git-init.md index f829dad366..f36ef690d4 100644 --- a/pages/common/git-init.md +++ b/pages/common/git-init.md @@ -7,6 +7,10 @@ `git init` +- Initialize a repository with the specified name for the initial branch: + +`git init --initial-branch={{branch_name}}` + - Initialize a repository using SHA256 for object hashes (requires Git version 2.29+): `git init --object-format={{sha256}}`