Alexander Kerchum
Alexander Kerchum

Alexander Kerchum

How to move a directory from one git repo to another (or new) without losing history

Nov 24, 20211 min read

Make copy of repo git clone dirtySourceRepo newSourceRepo OR clone from actual git repo and prevent push git remote set-url --push origin no_push Make sure to checkout the correct branch before the next step. Cloning from another local directory al...