Title: Theory / Important / CS / Softw / VCS / Git / Init
Tags: instruction_to_flag seen_description computer_to_instruction hasNotNewEffectReturnsMeaning fromCommandLine FromInstruction fromCommand some_instruction

Fla: init
Effect: Start a git repository in the current directory
Prefix: git
Chapter: 2
Section: 1

Fla: --bare
Effect: state that the repo resulting from cloning is bare
Page: https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server
Prefix: git clone/init
Chapter: 4
Section: 2

Fla: --shared
Effect: add group write permissions to a repository
Page: https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server
Prefix: git init
Chapter: 4
Section: 2

Variable: init.defaultBranch
Meaning: Name of the branch created with `git init`
Page: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
Context: git

Fla: --quiet
Effect: Only print error and warning messages; all other output will be suppressed.
Page: https://git-scm.com/docs/git-init
Prefix: git init
Flag abbreviation: -q

Fla: --object-format=<format>
Effect: Specify the given object format (hash algorithm) for the repository.
Page: https://git-scm.com/docs/git-init
Prefix: git init

Fla: --template=<template-directory>
Effect: Specify the directory from which templates will be used.
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init|clone

Fla: --separate-git-dir=<git-dir>
Effect: Instead of initializing the repository as a directory to either $GIT_DIR or ./.git/, create a text file there containing the path to the actual repository. This file acts as filesystem-agnostic Git symbolic link to the repository.
If this is reinitialization, the repository will be moved to the specified path.
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init|clone

Fla: --initial-branch=<branch-name>
Effect: Use the specified name for the initial branch in the newly created repository.
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init
Flag abbreviation: -b <branch-name>

Fla: --shared=umask
--shared=false
Use permissions reported by umask(2).
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init
Extra: The default

Fla: --shared=group
--shared=true
Effect: Make the repository group-writable, (and g+sx, since the git group may be not the primary group of all users). This is used to loosen the permissions of an otherwise safe umask(2) value.
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init

Fla: --shared=all
--shared=world
--shared=everybody
Effect: make the repository readable by all users.
Page: https://git-scm.com/docs/git-ls-tree
Prefix: git init

Name: A template directory
Definition: A directory whose non hidden files are copied to .git during init
Page: https://git-scm.com/docs/git-ls-tree

Question: Which directory is the template directory
Answer: --template option or
Page: https://git-scm.com/docs/git-ls-tree
Context: git
Answer2: $GIT_TEMPLATE_DIR or
Answer3: init.templateDir or
Answer4: /usr/share/git-core/templates