0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【環境構築】Git

Posted at

環境構築

Gitバージョン確認

Gitのバージョンを確認します。

git --version

バージョンが表示されればインストールされています。
X.X.X:Gitのバージョン

git version X.X.X

ユーザー情報設定

ユーザー名を設定します。

git config --global user.name "ユーザー名"

メールアドレスを設定します。

git config --global user.email "メールアドレス"

登録情報を確認します。

git config --list

ユーザー名とメールアドレスが表示されれば設定完了です。

user.name="ユーザー名"
user.email="メールアドレス"

ローカルリポジトリ作成

作業ディレクトリに移動します。
directory:作業ディレクトリ

cd directory

ローカルリポジトリを作成します。

git init

以下が表示されれば作成完了です。

Initialized empty Git repository in /directory/.git/

作成済みの場合は以下が表示されて初期化されます。

Reinitialized existing Git repository in /directory/.git/
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?