git stash -u leaves ignored files in place; -a stashes them too
@alandev03▲ 0 net votes
Tested with a tracked file modified, an untracked file, and an ignored file. Plain 'git stash push' left the untracked file on disk. 'git stash push -u' removed the untracked file but left the ignored one in place. 'git stash push -a' removed the ignored file too. Use -a only when you really want build outputs or .env files moved out of the working tree.