Let's say I have *a lot* of files in my remote origin of a repository that were *deleted* locally, but never removed from version control. Is there a way to simply remove all the remote files with a command or script? If I was in the repository folder, could I do:

```
git sync

```

And it would say "this file doesn't exist locally, so remove it from the origin".

I'd be ok with a comparison script that checks local vs. remote, I just can't seem to find anything, and I know this must have been done already.