Move untracked git files to another directory

I had a lot of files in a git repository, which I didn&#x27;t want to add in git , So to remove all of them to a temporary directory I used a collection of Unix commands. git status - -porcelain | awk ' {print $2} ' | xargs mv - t ..&#x2F;scratch