How to Git Stash Tracked, Untracked and Ignored Files?

You can stash all files (which will include tracked, untracked and ignored files) by using the --all (or -a shorthand) flag with the git stash command like so:

git stash --all
git stash -a

This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.