meta data for this page
This is an old revision of the document!
Rewrite history
Remove files from history (rewriting)
Iterate through history and remove all files mathcing pattern:
git filter-branch --tree-filter 'rm -f m* z* x* w* s* r*' --prune-empty HEAD
sudo apt install git-filter-repo
Remove workspace dir:
git filter-repo --path workspace --invert-paths --force
Move from subdir to root
git filter-repo --path-rename 'MYDIR/:'
apply dos2unix
git filter-branch --tree-filter 'git ls-files -z | xargs -0 dos2unix' -- --all