moving code between repositories?
Daniel Bullok
1 post
|
Hi. |
Travis Swice...
13 posts
|
Hey Daniel; That’s a work-flow I haven’t covered in the book yet. It’s kind of specific, but could definitely be useful. Maybe I’ll add it to the Recipes appendix. You are definitely right, though. Keeping a bunch of different projects in one big Git repository isn’t the best of way to handle this situation. You can do it, but you don’t have as much flexibility as having smaller, more focused repositories. So here’s what I would do. Create a clone of the repository that has the code you want to extract into its own repository. Let’s call them repo A and repo B, respectively. The cloned copy will become your repo B. Just run To make your job a bit easier, you can generate the list of commits you want to pull out for your rebase instead of manually going over every commit. To do that, run Hope that helps! |
2 posts, 2 voices
