텍스트 비교
두 텍스트나 설정 파일을 나란히 보거나 통합 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}
교체된 줄 안에서 바뀐 단어는 더 진하게 표시됩니다. 통합 diff 복사는 문맥 3줄을 포함한 ---/+++/@@ 패치를 만듭니다.
diff 참고
빠른 참조- + 줄
- 수정본에만 있는 줄입니다. 풀 리퀘스트에서 리뷰어가 가장 먼저 읽는 부분입니다.
- - 줄
- 원본에서 삭제된 줄입니다.
- git diff -w
- 들여쓰기 변경처럼 공백만 다른 줄을 무시해 실제 변경 내용을 또렷하게 봅니다.
- @@ -1,4 +1,6 @@
- 헝크 헤더입니다. 통합 diff에서 이어지는 원본 범위와 수정본 범위를 나타냅니다.
- git diff --stat
- 전체 패치를 열기 전에 파일별 추가·삭제 줄 수를 요약해 줍니다.
- LCS
- diff는 줄 단위 최장 공통 부분 수열로 계산하므로, 옮겨진 블록은 삭제와 추가로 표시됩니다.
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.