DEV Community

Jesse Houwing for Xebia Microsoft Services

Posted on • Originally published at jessehouwing.net on

Installing git-filter-repo on windows

Installing git-filter-repo on windows

I've been trying to get git-filter-repo to work on Windows and WSL today and it's been quite a struggle. The docs are pretty limited and call out I may have to update some values in the script itself to make things work. But doesn't spell out what to fix and how to make it work.

I ended up doing the following:

1. Install Python on Windows

Install Python for Windows 3.10. And enable long-path-support. I did not use the store version, though it should do the trick as well.

2. Add Python to the path

Add the path to Python and its Scrips folder to the environment.

Installing git-filter-repo on windows

3. Install git-filter-repo using pip3

c:\> pip3 install git-filter-repo
Enter fullscreen mode Exit fullscreen mode

And be done with it!

It's probably not the Python way of doing things, but I can now use the tool I need. If you know a better way of solving this problem, let me know.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay