I need some advice with my desired setup with git and Rails.
Basically for my first Rails application I used a base application template from GitHub, I then made a ton of changes and now have a full application which is fairly customised.
I have now extracted all of the changes I made to the files within the base application template and have committed the changes to my fork of the github repo. Ideally, I would like to have the base application template as a branch in my application and rebase it with my master. Is this actually possible?
The reason I want to do this: I want to keep the base application up to date and functional, so for my next project I can just clone the base application template from my github fork and get working. Likewise, if anyone fixes any bugs in the base application template, I could merge those fixes with any application I have the base application template as a branch?
Is this possible? Is there a better/more common way to do this?
Thanks in advance!
Thanks,
Danny
That’s a interesting idea, though I think it might be harder than you realize to rebase an entire project history ontop of a bunch of updates.
Here’s how you could do it, in pseudo-git 🙂
This might work out if the app template was just a gem-file or a collection of plugins. But even then, you might be better off just merging
masterandapp_templateso you wouldn’t have to rewrite your entire app history.