However, it is possible to alter this behavior and stash untracked files with the right git stash save and push options. The trick is to use the --include-untracked option or for brevity, the -u alias ...
Here’s a quick, real-world example of how to remove a file from the Git index. In this example we perform the following tasks: However, you should avoid his option, because this may not only remove ...