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
Yes, if you do a git rm and commit & push those changes. The file will disappear from the repository for that changeset and future commits.
git rm
The file will still be available for the previous revisions.