tldr/pages.de/common/git-init.md

582 B

git init

Erstelle eine neues lokales Git-Repository. Weitere Informationen: https://git-scm.com/docs/git-init.

  • Erstelle eine neues lokales Repository:

git init

  • Erstelle eine neues Repository mit einem bestimmten Namen für den ersten Branch:

git init --initial-branch={{branch_name}}

  • Erstelle ein neues Repository, welches SHA256 für Objekt-Hashes verwendet (benötigt Git 2.29+):

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

  • Erstelle eine neues minimales Repository, welches sich für die Verwendung als Remote-Repository über SSH eignet:

git init --bare