问题
So I'm trying to use git filter-repo for the first time.
I've installed Python 3.9.
I try to run:
git filter-repo --strip-blobs-bigger-than 100M
Each time it fails:
- Git Bash:
git: 'filter-repo' is not a git command. - Powershell:
Python was not found; - CMD:
Python was not found;
Any advice on what I'm missing please?
回答1:
Double-check the installation process on newren/git-filter-repo/INSTALL
You must make sure first (in a regular CMD) than git-filter-repo is in your %PATH%.
If you install it through pip, for instance, it should, since the Python folder should be added to your PATH at Python3 installation.
Once that %PATH% is correct (and you see git-filter-repo in it), then git will recognize the filter-repo command.
来源:https://stackoverflow.com/questions/65626875/git-filter-repo-python-was-not-found-but-its-installed