最終更新:2021-07-05 (月) 11:40:17 (1024d)  

git init
Top / git init

Create an empty Git repository or reinitialize an existing one

$ git init
Initialized empty Git repository in D:/Repos/GitHub/test/.git/
usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]

    --template <template-directory>
                          directory from which templates will be used
    --bare                create a bare repository
    --shared[=<permissions>]
                          specify that the git repository is to be shared amongst several users
    -q, --quiet           be quiet
    --separate-git-dir <gitdir>
                          separate git dir from working tree

メモ

  • git init
    git add *
    git commit -m "initial commit"

関連