Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 837705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:11:06+00:00 2026-05-15T05:11:06+00:00

I need some advice with my desired setup with git and Rails. Basically for

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:11:06+00:00Added an answer on May 15, 2026 at 5:11 am

    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 🙂

    # First fork the app template on github
    # Then clone it locally
    git clone your_fork_of_app_template_url
    
    # Setup a remote to the original repository (the one you forked from)
    git remote add original_base original_app_template_url
    
    # make a branch at the root so you have someplace to pull in new changes
    git checkout -b app_template original_base/master
    
    # go back to your master and write your app
    git checkout master
    git commit
    git commit 
    ...
    
    # Then later update your app template if it has changed
    git checkout app_template
    git pull original_base
    
    # now Rebase your entire app on top of the updated template (not sure how to go about this with multiple branches like edge)
    git checkout master
    git rebase app_template
    

    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 master and app_template so you wouldn’t have to rewrite your entire app history.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some advice of how to setup my tables I currently have a
I need some advice for a design which I have to implement in application.
I need some advice from experts :) I will develop a website using PHP
I need some advice, what is the rule of the thumb when creating Rails
I need some advice on configuring mail in production Ruby-on-Rails sites. I deploy my
I need some advice on creating a syntax highligher for java application using swing.
Need some advice, I'm after a decent process/task manager for Ubuntu. Basically I have
i need some advice. I am developing an iPhone application (later for Android also)
I need some advice how to implement this situation in my application. I have
Need some advice from you experts out there. I've just started with Android programming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.