Comparador de textos
Compara dos textos o archivos de configuración en paralelo o con diff unificado, resalta las palabras que cambian dentro de cada línea y permite copiar el parche.
Se ejecuta por completo en tu navegador: nada de lo que pegues se sube.
- 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}
Las palabras que cambian dentro de una línea reemplazada se marcan en un tono más oscuro. Copiar diff unificado genera un parche ---/+++/@@ con 3 líneas de contexto.
Referencia de diff
referencia rápida- + línea
- Línea que solo existe en la versión modificada: lo primero que lee quien revisa un pull request.
- - línea
- Línea eliminada de la versión original.
- git diff -w
- Ignora los cambios de solo espacios, como una reindentación, y deja visible el cambio real.
- @@ -1,4 +1,6 @@
- Cabecera de bloque: el rango original y el modificado que vienen después en un diff unificado.
- git diff --stat
- Resume las inserciones y eliminaciones por archivo antes de abrir el parche completo.
- LCS
- Los diffs se calculan sobre la subsecuencia común más larga de líneas, así que un bloque movido aparece como eliminado más añadido.
Guías de sintaxis de Git
Todas las guías de GitGit 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.