How to temporarily stash/unstash your uncommitted files on git ๐Ÿ‘ฉโ€๐Ÿ’ป

Kiki AI
Jan 6, 2021

--

THANKS ๐Ÿ‘: I appreciate the many claps most my readers leave because it takes me a long time to write these free articles.

Itโ€™s one of the simple things thatโ€™s always hard to remember. Hereโ€™s how to stash uncommitted changes on git :

1.) Go to your terminal/console and cd into your directory ๐Ÿ’ป

2.) Stash your changes๐ŸŒณ

Type the following command:

git stash

This should stash your changes.

3.) Check your changes have been stashed โœ…

Type the following command:

git status

You should have no files uncommitted now when you run this.

4.) Want to get the files back/unstash?

Type the following command:

git stash pop

Now if you run โ€œgit statusโ€ again you should see all your changes back.

Thanks for reading! Please leave a clap like my other readers if this helped ๐Ÿ˜Š

--

--

Kiki AI
Kiki AI

Written by Kiki AI

26K+ Reads โœ๐Ÿผ Passionate about tech, AI and impact ๐Ÿ‘Œ Views are all my own.

No responses yet