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 3231168
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:00:48+00:00 2026-05-17T17:00:48+00:00

I have a project in Codeigniter, managed via Git and Github, that consists of

  • 0

I have a project in Codeigniter, managed via Git and Github, that consists of my ‘boilerplate’ customizations and libraries (like a centralized Render library) that I use for all of my CI projects – let’s call that ‘Baseline’.

At the same time that I’m developing and refining the Baseline CI project, I’m also developing the current client project, which we’ll call ‘Client’.

My question is – what’s the most efficient way to develop both the Baseline project and the client project simultaneously? For example, I may create a new controller and model in the Client project, but then add new helpers, some generic views and add to a couple of the libraries that I think need to be added to Baseline. Do I need to perform two commits, one for the Baseline (and push that to the remote Baseline repo), then commit again for the Client project?

I’ve been trying to figure out how to use submodules or branching to accomplish the same thing, but submodules seem to require their own directory structure in Git, and with branching I’m not sure how it would work.

Help?

  • 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-17T17:00:49+00:00Added an answer on May 17, 2026 at 5:00 pm

    Since I’m guessing the separate-directory-structures setup that submodules require is no-go for you, here’s what I’d suggest instead:

    1. Have one repository (A) that is your “baseline” project. Do all of your work on the baseline in that repository, and commit it there.

    2. Clone that repository to another, (B), and do all of your work for the client project there. Keep (A) as a remote (if you git clone (A), it’ll be set as origin automatically; you could add the github remote as github instead of origin).

    3. Then, when you make updates to the baseline (A) repository, commit them to (A), and then use git pull to pull them from (A) to (B). (Never push from (B) to (A), since you don’t want client code in the baseline repo.)

    So yes, you will need to commit your baseline updates and your client updates separately, but you won’t have to commit the same code twice.

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

Sidebar

Related Questions

I have a CodeIgniter project. I want to use Memcache, but I don't want
I have just moved my CodeIgniter project to a new server and now I'm
I am trying to code my first codeigniter project. I have a login controller
How can push a URI like this in CodeIgniter (1.7.1 currently): example.com/seg1/seg2/seg3/seg4/ or example.com/seg1/seg2/
I am using PHP and the codeigniter framework for a project I am working
I'm creating website that handles great amount of images. I have decided to use
Where and how do I include .js files in Views in CodeIgniter? I have
I have been using the CodeIgniter system for a while now - but it
We have been going back and forth a lot around our office lately about
I've worked with XAMPP, WAMPP, MAMPP, etc and am starting to look at Django.

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.