Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/common/git-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

- Initialize a repository with the specified name for the initial branch:

`git init --initial-branch={{branch_name}}`
`git init {{[-b|--initial-branch]}} {{branch_name}}`

- Initialize a repository using SHA256 for object hashes (requires Git version 2.29+):

`git init --object-format={{sha256}}`
`git init --object-format {{sha256}}`

- Initialize a barebones repository, suitable for use as a remote over SSH:

Expand Down