git-command

git-command

gitコマンドの使い方 ~ git reflog ~

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

gitコマンドの使い方 ~ git remote ~

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

gitコマンドの使い方 ~ git show ~

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

gitコマンドの使い方 ~ git diff ~

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

gitコマンドの使い方 ~ git status ~

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

gitコマンドの使い方 ~ git log ~

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

gitコマンドの使い方 ~ git init ~

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

gitコマンドの使い方 ~ git config ~

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