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

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

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

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

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

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

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

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