As the previous answer says, if you are working on Linux, you cannot download them. They are gone: the point is "git clean". If you are not using a file system that can take snapshots, but then you probably know how to get them back.
If your goal was to not see them in git status, you have two options:
A)
git status -uno
Does not print unused files and directories.
C) If there is a fixed set of files (or a file name template) that you never want to see in git status and do not install them under version control, you can "ignore" them. You just need to put your name or template in a file named ".gitignore" in the root of the repository.
This is commonly used for generated files.
The following example ignores file names ending in ".html" and the file "out / myFile.txt":
*.html out/myFile.txt
Cm
git help ignore
for more information.
source share