git init
リポジトリを新規作成するコマンド。
用例
- カレントディレクトリに、ローカルリポジトリを作成
git init
- 「c:¥gitwork」に、ローカルリポジトリを作成
git init c:¥gitwork
- 「c:¥gitshare」に、リモートリポジトリ(共有リポジトリ)を作成
git init --bare --shared c:¥gitshare
書式
git init <パス> [options]
公式によると以下の通り。
git init [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--object-format=<format] [--shared[=<permissions>]] [directory]
options
/x | xxx |
etc.
説明
リポジトリを新規作成するコマンド。
- ローカルリポジトリは、他のユーザーと共有することはできない。
- 既に存在するリポジトリの初期化も行える。
関連
- xxx
参考リンク
- git init - Gitコマンド虎の巻
- Git - git-init Documentation
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
その他メモ
なし。