I have found a couple of examples [here's one] of how to move a folder from one git repo to another. However, it seems to be destructive to the original repo (if I'm reading it correctly). What I need is to just copy a folder from one repo to another, with history, to another. something like the following:
Repo A:
/myApp/
/deploy/...
/src/...
/test/...
/bin/...
Repo B:
/myDeploymentCode/
/projects/
/myWebService/...
/myWebsite/...
After the copy I would like it to look like this:
Repo A:
/myApp/
/deploy/...
/src/...
/test/...
/bin/...
Repo B:
/myDeploymentCode/
/projects/
/myWebService/...
/myWebsite/...
/myApp/... << full copy of the deploy folder from myApp
I will likely get rid of the original deploy folder but want to keep it around until I know we are in the clear.
I'm guessing this is possible and I'm just blind. If it isn't, I could just manually move the files over. Losing all of the history but capturing the current state. But that is less than ideal.