How to temporarily stash/unstash your uncommitted files on git ๐ฉโ๐ป
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 ๐