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 ../scratchI 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