For this you need git-filter-repo
installed (filter-branch is discouraged).
cd a
git filter-repo --to-subdirectory-filter a
For this you need git-filter-repo
installed (filter-branch is discouraged).
cd a
git filter-repo --to-subdirectory-filter a