Skip to content

Instantly share code, notes, and snippets.

@morjuax
Created May 4, 2023 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morjuax/443dd5aaa5f416b9e05a2d95c8521362 to your computer and use it in GitHub Desktop.
Save morjuax/443dd5aaa5f416b9e05a2d95c8521362 to your computer and use it in GitHub Desktop.
Git stash
git stash: guarda los cambios temporalmente en memoria cuando no quieres hacer un commit aun
git stash save “mensaje”: guarda un stach con mensaje
git stash list: muestra la lista de cambios temporales
git stash pop: trae de vuelta los cambios que teníamos guardados en el ultimo stash
git stash apply stash@{n}: trae el stash que necesites con indicar su número dentro de las llaves
git stash drop: borra el ultimo stash
git stash clear: borra todos los stash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment