Here's my situation:
I wanted to do a once-and-done push to a git repo. So, I did the add
, commit
, and push
as usual. Except, I forgot that I had other files in previous commits that also got pushed. So, now there are unnecessary files contaminating the repo (remotely) that I pushed to. I want to remove those unnecessary files.
I don't want to pull from the remote repo because I'm not interested in getting any of those files. So, I effectively want to do something like a git filter-branch
but only on the remote repo.
How do I remove files from the remote repo without pulling/pushing again locally?