Saltar a contenido

08. Historial de cambios

Para ver un historial de los cambios que ha hecho en un archivo, puede usar el comando git log. Este comando le mostrará todos los commits que ha hecho en el archivo. También puede ver qué líneas de código han cambiado en cada commit.

Aquí podéis ver 3 commits, el último de ellos del 16 de enero.

z:\apuntes>git log
commit 4094d00115cb9d888352a3a46a3ad528280b9a31 (HEAD -> master, origin/master, origin/HEAD)
Author: John Nieve <john.nieve@elmuro.net>
Date:   Mon Jan 16 08:10:38 2023 +0100

    fdfd

commit 02033a82395a0957e47fd659a0fe429360f62fbd
Merge: 2d9dfa7b 3c064471
Author: John Nieve <john.nieve@elmuro.net>
Date:   Sun Jan 15 20:17:41 2023 +0100

    Merge branch 'master' of https://github.com/danimrprofe/apuntes into master

commit 2d9dfa7b939e6b47e9dd825724788586b9301a99
Author: Daniel  <john.nieve@elmuro.net>
Date:   Sun Jan 15 20:17:26 2023 +0100

    fdfd