cheatsheets: git
- git checkout -b NEW_BRANCH_NAME COMMIT_ID
- This will create a new branch called 'NEW_BRANCH_NAME' and check it out. "check out" means "to switch to the branch"
- git show <COMMIT>
- mostrar los cambios en el commit especificado
- git clean -df
- limpia los cambios que no esten en el STAGE
- Revisar la historia de un archivo en especifico
- git shortlog -sne --since="01-01-2022"
- Revisar número de commits por colaborar desde la fecha indicada
//ver el log en una sola line
git log --oneline
//agregar todos los cambios al stash
git add . o git add *
//comentar un commit
git commit -m "mi comentario bien descriptivo"
//subir cambios al repositorio remoto
git push origin/norembre_de_la_rama_remota
//cambiar de rama local
git branch nombre_de_la_rama
//forzar y sobrescribir al hacer un pull
git fetch --all
git reset --hard origin/master