![Thumbnail of post image 055](https://snowsystem.net/wp-content/uploads/2020/04/git-cat-file-320x180.png)
gitコマンドの使い方 ~ git cat-file ~
git cat-file コマンド概要 git cat-fileはリポジトリに登録されている以下のオブジェクトの内容を表示するコマンドです。 commitオブジェクトtreeオブジェクトblobオブジェクトtagオブジェクト 以下 ...
![Thumbnail of post image 040](https://snowsystem.net/wp-content/uploads/2020/04/gcp-bigquery-backup-320x180.png)
BigQueryのバックアップ機能(スナップショット デコレータ)を利用する方法
スナップショット デコレータ(snapshot decorators)はBigQueryの標準機能として自動で取得されるバックアップ機能です。 BigQueryのバックアップとして簡単に利用できる良い機能なのですが、注意 ...
![Thumbnail of post image 036](https://snowsystem.net/wp-content/uploads/2020/04/git-cherry-pick-320x180.png)
gitコマンドの使い方 ~ git cherry-pick ~
git cherry-pick コマンド概要 git cherry-pick コマンドは特定のcommitの変更内容だけを取り込んで新しいcommitを作成します。 以下の図はmasterブランチでcommit(C)をc ...
![Thumbnail of post image 039](https://snowsystem.net/wp-content/uploads/2020/04/git-rebase-320x180.png)
gitコマンドの使い方 ~ git rebase ~
git rebase コマンド概要 git rebase コマンドには以下の2つの機能があります。 2つのcommitの履歴を一直線にする複数のcommitを1つのcommitにまとめる 共通していることは、commit ...
![Thumbnail of post image 057](https://snowsystem.net/wp-content/uploads/2020/04/git-merge-320x180.png)
gitコマンドの使い方 ~ git merge ~
git merge コマンド概要 git merge コマンドはcheckout中のブランチに対して、指定したブランチの内容を取り込み新しいcommitを作成します。 以下は、masterブランチにdevelopブランチ ...
![Thumbnail of post image 090](https://snowsystem.net/wp-content/uploads/2020/04/git-commit-320x180.png)
gitコマンドの使い方 ~ git commit ~
git commit コマンド概要 git commit コマンドは次の2つのオブジェクトを作成しリポジトリに登録するコマンドです。 treeオブジェクト:ディレクトリの情報commitオブジェクト:blobオブジェクト ...
![Thumbnail of post image 124](https://snowsystem.net/wp-content/uploads/2020/04/git-rm-320x180.png)
gitコマンドの使い方 ~ git rm ~
git rm コマンド概要 git rm コマンドは以下の2つの処理を行います。 1. staging-area(ステージングエリア)のインデックスに登録されたファイル情報を削除する2. working-director ...
![Thumbnail of post image 061](https://snowsystem.net/wp-content/uploads/2020/04/git-ls-files-320x180.png)
gitコマンドの使い方 ~ git ls-files ~
git ls-files コマンド概要 git ls-filesコマンドはstaging-area(ステージングエリア)でインデックスされているファイルを確認したい場合に利用するコマンドです。 ディレクトリパスを含むファイルパスの一覧を表示 ...
![Thumbnail of post image 068](https://snowsystem.net/wp-content/uploads/2020/03/git-add-320x180.png)
gitコマンドの使い方 ~ git add ~
git add コマンド概要 git addを簡単に説明すると「ステージングエリア(インデックス)に追加する」となるのですが、もう少し具体的に理解しておくと、その他のコマンドについても理解が進みやすくなります。 git addは以下の2つの ...
![Thumbnail of post image 146](https://snowsystem.net/wp-content/uploads/2020/03/git-reflog-320x180.png)
gitコマンドの使い方 ~ git reflog ~
git reflog コマンド概要 HEADやブランチの移動履歴の確認や整理を行うコマンドです。 git reflogはこのコマンド単体で利用するより、他のコマンド(例えばgit diffなど)と合わせて利用することが多 ...
![Thumbnail of post image 084](https://snowsystem.net/wp-content/uploads/2020/03/git-remote-320x180.png)
gitコマンドの使い方 ~ git remote ~
git remote コマンド概要 リモート追跡ブランチのリモートリポジトリの設定と確認を行うコマンド 基本となる4つの操作を覚えておく。 設定状態の確認設定の追加設定の変更設定の削除 git remote コマンドの使い方 設定の確認 g ...
![Thumbnail of post image 107](https://snowsystem.net/wp-content/uploads/2020/03/git-show-320x180.png)
gitコマンドの使い方 ~ git show ~
git show コマンド概要 git show コマンドには2パターンの利用方法があります。 指定したcommitの情報と1つ前のcommitとdiffした結果を表示する指定したcommitのファイルの内容を表示する git show コ ...
![Thumbnail of post image 103](https://snowsystem.net/wp-content/uploads/2020/03/git-diff-320x180.png)
gitコマンドの使い方 ~ git diff ~
git diff コマンド概要 commitやファイルの差分を表示するコマンドです。 オプションの指定方法で3つのエリアを超えた比較ができる 1. working-directoryとstaging-area2. sat ...
![Thumbnail of post image 094](https://snowsystem.net/wp-content/uploads/2020/03/git-status-320x180.png)
gitコマンドの使い方 ~ git status ~
git status コマンドの概要 git statusは以下の3つの情報が表示されます 1.HEADが指すcommitとステージングエリア(staging-area)で差分のあるファイル2.作業ディレクトリ ...
![Thumbnail of post image 066](https://snowsystem.net/wp-content/uploads/2020/03/git-log-320x180.png)
gitコマンドの使い方 ~ git log ~
git log コマンドの概要 commit履歴を確認するコマンドです。 git log を利用するとcommitツリーを可視化することもできます。 $ git log --all --graph * commit 13 ...
![Thumbnail of post image 103](https://snowsystem.net/wp-content/uploads/2020/03/git-init-320x180.png)
gitコマンドの使い方 ~ git init ~
git init コマンドの概要 ローカルリポジトリを構築するコマンドです。 具体的には「.git」フォルダ以下にフォルダやファイルが作成されます。 git init コマンドの使い方 git init git init ...
![Thumbnail of post image 124](https://snowsystem.net/wp-content/uploads/2020/03/git-config-320x180.png)
gitコマンドの使い方 ~ git config ~
git config コマンドの概要 gitには数百種類の設定項目がありますが、ポイントは図の通り設定ファイルが3つ箇所にあり上に設定されているほど優先度が高くなります。 file-option適用範囲設定ファイルの場所--localリポジ ...
![Thumbnail of post image 113](https://snowsystem.net/wp-content/uploads/2020/03/win-wsl-ubuntu-docker-320x180.png)
Windows 10 Home(WSL2)にdocker環境を構築する手順まとめ
WSLもバージョン2になりWSL(Ubuntu18.04や20.04)でdockerが動作するようになりました。 Windows 10 Homeユーザ向けにこれまでdockerの構築手順をご紹介してきたのですが、4つの記事に分散しており手順 ...
![Thumbnail of post image 161](https://snowsystem.net/wp-content/uploads/2020/03/git-eye-9-320x180.png)
git入力 ~仕組みを理解する~ 第9回 GitHubのリポジトリとcommitのやり取りをしよう
GitHubをリモートリポジトリとして利用するといっても、第7回で行った2つのリポジトリの操作とほとんど変わりません。 では、早速、はじめましょう。 GitHubにリポジトリを作成する 第8回でGitHubにリポジトリを作成していないかたは ...
![Thumbnail of post image 027](https://snowsystem.net/wp-content/uploads/2020/03/git-eye-8-320x180.png)
git入門 ~仕組みを理解する~ 第8回 GitHubにアカウントとリポジトリを作成しよう
第7回まででcommitの仕組みや2つのリポジトリを利用したcommitの反映する方法について学んできました。 gitについての理解がここまで深まった状態になれば、リモートリポジトリにGitHubを利用しても混乱することはないはずです。 G ...