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

This commit is contained in:
Axel Navarro
2021-05-19 12:20:16 -03:00
committed by GitHub
parent f2b054d0e1
commit 9c2d5b51a6
2 changed files with 9 additions and 1 deletions

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