cheat_sheet_chuleta_de_git_para_sysadmins
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cheat_sheet_chuleta_de_git_para_sysadmins [2022/08/04 15:32] – [Ramas y etiquetas] busindre | cheat_sheet_chuleta_de_git_para_sysadmins [2023/10/19 12:24] – [Deshacer acciones] busindre | ||
---|---|---|---|
Line 81: | Line 81: | ||
git log --follow -p -- < | git log --follow -p -- < | ||
- | git show <commit> # Muestra los ficheros editados y sus cambios en un determinado commit. | + | git show <commit1> < |
git diff-tree --no-commit-id --name-only -r < | git diff-tree --no-commit-id --name-only -r < | ||
git show --pretty="" | git show --pretty="" | ||
Line 218: | Line 218: | ||
# Se busca el commit perteneciente a la Pull request, por ejemplo 0ef16eb1370 y se le indica a git que debe coger ese commit. | # Se busca el commit perteneciente a la Pull request, por ejemplo 0ef16eb1370 y se le indica a git que debe coger ese commit. | ||
git cherry-pick 0ef16eb1370</ | git cherry-pick 0ef16eb1370</ | ||
- | ===== Deshacer acciones ===== | + | ===== Deshacer |
<code bash>git reset --hard HEAD # Deshace todos los cambios locales. | <code bash>git reset --hard HEAD # Deshace todos los cambios locales. | ||
Line 228: | Line 228: | ||
git checkout < | git checkout < | ||
git reset < | git reset < | ||
+ | git restore --staged | ||
+ | |||
# NOTA: En la sección " | # NOTA: En la sección " |
cheat_sheet_chuleta_de_git_para_sysadmins.txt · Last modified: 2024/05/28 21:09 by busindre