Git - コマンド - git diff(差分表示)


クラウディア 


1. 概要
2. diff
3. 参考サイト

1. 概要

 「git diff」は、リポジトリ間の差異について表示します。

2. diff

 基本形は、こんなだそうな。

git diff [<options>] [<commit>] [--] [<path>...]
git diff [<options>] --cached [--merge-base] [<commit>] [--] [<path>...]
git diff [<options>] [--merge-base] <commit> [<commit>...] <commit> [--] [<path>...]
git diff [<options>] <commit>...<commit> [--] [<path>...]
git diff [<options>] <blob> <blob>
git diff [<options>] --no-index [--] <path> <path> [<pathspec>...]

3. 参考サイト

 本ページは、下記のサイトを参考にさせていただきました
git-diff – Git コマンドリファレンス(日本語版)