Move untracked git files to another directory

123 words, 1 minutes to read

I had a lot of files in a git repository, which I didn'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 ../scratch