How do I move repository (old_rep) to another repository (new_rep) as a directory without loosing the history and files for repositories?
Here is what I tried from other stack questions. I have files in new_repo like directories, .txt, .sql files with history. When I run the codes below, looks like the --mirror is replacing everything from old_rep into new_rep.
mkdir foo cd foo git clone --bare ssh://[email protected]/test/old_rep.git cd old_rep.git git clone --bare ssh://[email protected]/test/new_rep.git cd .. rm -rf old_rep.git