mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 15:54:01 +02:00

* git-commit: add pt_BR translation * git-diff: add pt_BR translation * git-init: add pt_BR translation * git-push: add pt_BR translation * git-pull: add pt_BR translation * git-rebase: add pt_BR translation * git-reset: add pt_BR translation * git-status: add pt_BR translation * git-log: add pt_BR translation * git-checkout: add pt_BR translation * git-branch: add pt_BR translation * git-*: update pt_BR translation Signed-off-by: Pedro Mariano <ph_marianocorrea@hotmail.com> * git-branch: update pt_BR translation * Apply suggestions from code review * git-branch: update pt_BR translation * apply suggestion on `git-log.md` --------- Signed-off-by: Pedro Mariano <ph_marianocorrea@hotmail.com> Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
20 lines
534 B
Markdown
20 lines
534 B
Markdown
# git init
|
|
|
|
> Inicializa um novo repositório Git local.
|
|
> Mais informações: <https://git-scm.com/docs/git-init>.
|
|
|
|
- Inicializa um novo repositório local:
|
|
|
|
`git init`
|
|
|
|
- Inicializa um repositório com o nome especificado para a branch inicial:
|
|
|
|
`git init --initial-branch={{nome_da_branch}}`
|
|
|
|
- Inicializa um repositório usando SHA256 para os hashes de objeto (requer Git versão 2.29+):
|
|
|
|
`git init --object-format={{sha256}}`
|
|
|
|
- Inicializa um repositório barebones, adequado para usar como um remoto via ssh:
|
|
|
|
`git init --bare`
|