git-filter-repo

git filter repo - Python was not found - but it's installed

二次信任 提交于 2021-02-08 09:54:42
问题 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

git filter repo - Python was not found - but it's installed

北慕城南 提交于 2021-02-08 09:54:42
问题 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

git filter repo - Python was not found - but it's installed

这一生的挚爱 提交于 2021-02-08 09:54:11
问题 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

How to modify only a range of commits with git filter-repo instead of the entire branch history?

被刻印的时光 ゝ 提交于 2021-01-29 05:15:42
问题 I want to use git filter-repo to automatically apply some scripted style-guide refactoring for my multi-commit pull requests. Therefore I want to apply the operations only to the few latest new commits I'm pushing, but not touch anything else in older history. Is there a way? For the sake of concreteness, here's a test repo : https://github.com/cirosantilli/test-git-filter-repository and a sample blob operation: # Install git filter-repo. # https://superuser.com/questions/1563034/how-do-you

How to keep commit hashs not change when use git filter-repo rewrite the history

≯℡__Kan透↙ 提交于 2021-01-28 11:17:40
问题 I have a git repo which has some invalid folder and source committed and deleted. I want to rewrite the history by git filter-repo . Is it possible to keep the commit hash not changing when doing rewrite. 来源: https://stackoverflow.com/questions/63125810/how-to-keep-commit-hashs-not-change-when-use-git-filter-repo-rewrite-the-history