7yl4r / github-lessons-usf

http://www.tylar.info/github-lessons-usf/
1 stars 6 forks source link

Merging Repositories #16

Closed jennaG2 closed 2 years ago

jennaG2 commented 2 years ago

Howdy @7yl4r ,

Is there a simple way to merge two repositories into one (basically taking all of the uploads from one and putting them into another) without losing any files?

Hope your'e doing jazzy, JG

7yl4r commented 2 years ago

There are a few ways to do this given on this stack overflow Q/A.

What gets complicated is trying to tell git how to combine the file histories from both repos together. If you are willing to lose the history on one repo, then I would just download both, copy the files from the repo being deleted, and add the files to the repo being kept in a new commit.

jennaG2 commented 2 years ago

This helps, thank you so much