I have two repositories viz. repository A and repository B. I am moving one directory from repository A viz. dir-to-move to repository B. But I want to retain git history of that directory only ( i.e. of dir-to-move ) for which git-filter-branch is taking huge time. So I want to use BFG Repo cleaner which is faster. But I want to reduce size of my .git folder as well. So question is two fold
- How do I execute following command using BFG Repo cleaner ?
git filter-branch --subdirectory-filter {dir-to-move} -- --all
- How to reduce .git size after running BFG Repo cleaner ?( which is right now in GB to MB )