Struggling to get git-filter-repo to work

Solution 1:

After 24 gruelling hours attempting to get this to work I've finally solved my issue.

I mentioned in the main post I was getting issue with 100's of python.exe spawning, it seems I'm not the only one.

https://github.com/newren/git-filter-repo/issues/193#issuecomment-800351103

Having read the above I thought I'd try one last thing, the above post mentioned this worked with Anaconda PowerShell Prompt in Administrator mode, and I wondered if that Powershell version "understood" what the shebang to #!/usr/bin/env python meant.

So I created another environment "PYTHON" variable under "User variables for admin" (see image below) reverted my changed that I made to git-filter-repo #!/usr/bin/env python and everything started to work.

I hope this helps someone in the future.

enter image description here