テキスト差分チェッカー
2つのテキストや設定ファイルを並べて比較したり、unified diff で確認できます。置き換わった行の中で変わった単語まで強調し、パッチとしてコピーできます。
ブラウザ内だけで動作します。入力した内容はどこにもアップロードされません。
- 11{
- 22 "name": "ryuslog-api",
- 3- "version": "1.3.2",
- 3+ "version": "1.4.0",
- 44 "scripts": {
- 55 "dev": "next dev",
- 6- "build": "next build"
- 6+ "build": "next build",
- 7+ "lint": "eslint ."
- 78 },
- 89 "dependencies": {
- 910 "next": "16.2.10",
- 10- "react": "19.2.4"
- 11+ "react": "19.2.5"
- 12+ },
- 13+ "devDependencies": {
- 14+ "eslint": "^9"
- 1115 }
- 1216}
置き換わった行の中で変わった単語は濃い色で示されます。unified diff をコピーすると、前後 3行の文脈を含む ---/+++/@@ パッチができます。
diff リファレンス
クイックリファレンス- + 行
- 変更後のバージョンにだけ存在する行です。プルリクエストでレビュアーが最初に読む部分です。
- - 行
- 元のバージョンから削除された行です。
- git diff -w
- インデント変更など空白だけの差分を無視し、実際の変更を見やすくします。
- @@ -1,4 +1,6 @@
- ハンクヘッダーです。unified diff で続く元の範囲と変更後の範囲を示します。
- git diff --stat
- パッチ全体を開く前に、ファイルごとの追加・削除行数を要約します。
- LCS
- 差分は行単位の最長共通部分列で計算するため、移動したブロックは削除+追加として表示されます。
Git の関連文法ガイド
Git のガイドをすべて見るGit Push Rejected GH001: Large Files and History Rewrite
The 100 MB limit applies to every blob in the pushed history, so deleting the file does not help. Find the object, rewrite with filter-repo, or migrate to LFS.
GitGit Tags: Lightweight vs Annotated and SemVer Release Tags
An annotated tag stores the tagger, date, and message; describe and --follow-tags only use those. How v:refname sorting and versionsort.suffix fix pre-release order.
GitGit Detached HEAD and Non-Fast-Forward Push Rejected
A detached HEAD records commits on no branch, and a rejected push protects commits you do not have. Recover with a branch and reflog; integrate before pushing.
GitGit detected dubious ownership: Docker, Compose, and CI Fixes
A bind mount keeps the host UID and the container runs as root, so Git stops before reading a single object. Trust the path Git resolves, not the one you mounted.