Is it possible to remove all files in a repository and update it with only the files I have in my local machine? The reason is that, there are certain files that is not necessar
Remove all files not belonging to a repositiory (e.g. for a clean-build after switching a branch):
git status | xargs rm -rf