How to install git-filter-repo on Windows

55 Views Asked by At

I'm trying to follow this answer, which recommends using git-filter-repo.

What I've tried; what happened:

  • Download just the file git-filter-repo, edit my PATH to include it, run git-filter-repo, python git-filter-repo, python3 git-filter-repo, python git filter-repo, git filter-repo. In all of these cases, the command (python, python3, git) cannot find the file/operation (git-filter-repo, filter-repo). (I'm always running these commands from my personal git folder that I want to use the git-filter-repo script on.)
  • Clone the repo, add the repo to my PATH. Run git-filter-repo, python git-filter-repo, python3 git-filter-repo. In all cases, the command cannot find the file/operation.
  • I noticed that when I cloned, I ran into the symlink issue mentioned in the install documentation. So I copy/pasted git-filter-repo into git-filter-repo.py. Added the repo/folder git-filter-repo to my path. Again, tried the different commands, nothing worked.
  • Same repo with git-filter-repo.py being edited, but now git-filter-repo/git-filter-repo is on the path. No luck.
  • Same repo with git-filter-repo.py being edited, but now git-filter-repo/git-filter-repo.py is on the path. No luck.

Is there something that I did that should have worked? (I may have missed some combination of commands and path editing when testing.) If not, how do I run git-filter-repo on my personal repo?

0

There are 0 best solutions below