DEV Community

Cover image for git stash | Escondiendo secretos de código.
Jorge Garcia
Jorge Garcia

Posted on

git stash | Escondiendo secretos de código.

Esta herramienta, es como una especie de Súper Poder para Desarrolladores, hace que tu vida sea mucho más fácil y tus cambios más manejables.

Imagina que estás trabajando en algo genial, pero de repente necesitas cambiar de tarea o sumergirte en otro proyecto. ¡No hay problema! Con:

git stash
Enter fullscreen mode Exit fullscreen mode

simplemente ocultas tus cambios locales como por arte de magia. Tu área de trabajo queda limpia y lista para la siguiente aventura.

Pero eso no es todo, porque Git Stash también es un maestro en la colaboración. Cuando te unes a otra rama y hay cambios por ahí, ¿te suena complicado? ¡Para nada! Con:

git stash apply
Enter fullscreen mode Exit fullscreen mode

puedes traer esos cambios externos a tu rama actual sin dolores de cabeza.

Y lo mejor de todo, cuando decides que es hora de recuperar tus propios cambios ocultos, simplemente usas:

git stash pop
Enter fullscreen mode Exit fullscreen mode

¡Pum! Todo vuelve a la normalidad, y ni siquiera queda rastro de que tus cambios estuvieron de vacaciones temporales.

En resumen, Git Stash no solo es una herramienta técnica, ¡es tu compañero confiable para que tu vida de desarrollo sea más fácil y divertida!

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay