2020年3月29日git-command

Thumbnail of post image 167

git reflog コマンド概要 HEADやブランチの移動履歴の確認や整理を行うコマンドです。 git reflogはこのコマンド単体で利用するより、他のコマンド(例えばgit diffなど)と合わせて利用することが多 ...

2020年3月29日git-command

Thumbnail of post image 043

git remote コマンド概要 リモート追跡ブランチのリモートリポジトリの設定と確認を行うコマンド 基本となる4つの操作を覚えておく。 設定状態の確認設定の追加設定の変更設定の削除 git remote コマンドの使い方 設定の確認 g ...

2020年3月29日git-command

Thumbnail of post image 134

git show コマンド概要 git show コマンドには2パターンの利用方法があります。 指定したcommitの情報と1つ前のcommitとdiffした結果を表示する指定したcommitのファイルの内容を表示する git show コ ...

2020年3月28日git-command

Thumbnail of post image 146

git diff コマンド概要 commitやファイルの差分を表示するコマンドです。 オプションの指定方法で3つのエリアを超えた比較ができる 1. working-directoryとstaging-area2. sat ...

2020年3月28日git-command

Thumbnail of post image 164

git status コマンドの概要 git statusは以下の3つの情報が表示されます 1.HEADが指すcommitとステージングエリア(staging-area)で差分のあるファイル2.作業ディレクトリ ...

2020年3月27日git-command

Thumbnail of post image 061

git log コマンドの概要 commit履歴を確認するコマンドです。 git log を利用するとcommitツリーを可視化することもできます。 $ git log --all --graph * commit 13 ...

2020年3月26日git-command

Thumbnail of post image 041

git init コマンドの概要 ローカルリポジトリを構築するコマンドです。 具体的には「.git」フォルダ以下にフォルダやファイルが作成されます。 git init コマンドの使い方 git init git init ...

2020年3月25日git-command

Thumbnail of post image 162

git config コマンドの概要 gitには数百種類の設定項目がありますが、ポイントは図の通り設定ファイルが3つ箇所にあり上に設定されているほど優先度が高くなります。 file-option適用範囲設定ファイルの場所--localリポジ ...