I use a bare repo on a USB drive to work on a personal project at work and at home.
HOME: working on a Mac. Accidentally committing and pushing a badly named file containing *
WORK: try to git pull. Partly works OK, I get all necessary files to work with, but I also get the error "unable to create file XXX* (Invalid argument)".
Non-working solution: trying to delete bad file from bare repo with git push --force: tells me "you should pull first".
But, as seen above, git pull yields an error. Any suggestions on how to clean out this mess? Basically, I just want to "get into" the bare repo on my USB drive and delete the problematic file so that I can merge.