Skip to content

Configuracion importante sobre git

bash
# --- CONFIGURACIÓN GITIGNORE ---
notesDev/* # Ignora todo dentro de esta carpeta
!notesDev/notesDev.md     # Excepción: SEGUIMIENTO activo
!notesDev/A.md            # Excepción: SEGUIMIENTO activo
!notesDev/B.md            # Excepción: SEGUIMIENTO activo

# --- INSPECCIÓN (GIT SHOW) ---
git show <commit>               # Ver historial y modificaciones (diff)
git show --name-only <commit>   # Ver solo nombres de archivos
git show --name-status <commit> # Ver nombres y estado

# --- RENOMBRAR ARCHIVOS ---
git mv <archivo_viejo> <archivo_nuevo> 
git mv notesDev/15Mayo2024.md notesDev/otronombre.md

# --- FILTRAR POR FECHA ---
git log --after="2025-11-20" --before="2025-11-22" --oneline

# --- ELIMINAR ARCHIVOS DEL REPO, AL CUAL SE DEJO DE HACERLE SEGUIMIENTO
git rm -r --cached notesDev