You have a git repo name 'repoA' which containes some files that you want to move to another repo named 'repoB' keeping their version history. You would need git filter-repo so install it. DO NOT USE git filter-branch on any other instruction set which asks you to use it.
pip install git-filter-repo
- Create a temporary local directory where we'll do the juggling. Later, we'll delete it.