I am trying to push my repo to a remote and it complains about a file that is in a branch from far back. How can I remove the file from revision history, in order to push without being rejected for containing a large file?
I’ve tried using filter-repo with the path to the file, e.g.:
git filter-repo --path somewhere --invert-paths
I’ve tried deleting the branch and cloning single-branch, e.g.
git clone --no-local -b main --single-branch some some-other
I’ve tried using git gc
Still on push it complains about the file.
cheyrn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.