git-init: add --initial-branch example (#5990)

manned-org
Axel Navarro 2021-05-19 12:20:16 -03:00 committed by GitHub
parent f2b054d0e1
commit 9c2d5b51a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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}}`

View File

@ -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}}`