News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon's Blog:
Managing CodeIgniter Packages with Git Submodules
September 26, 2011 @ 09:27:11

Phil Sturgeon has a new post to his blog today for the CodeIgniter folks out there - a tip on keeping things organized by using git submodules for package management.

With CodeIgniter moving to GitHub we are starting to see a lot of CodeIgniter developers wanting to learn more about Git, specifically how they can use it to improve their workflows, manage their applications and move away from the horrible days of copying and pasting updated libraries off a wiki. UCK. Sparks are helping us on the whole, but there is another method that we can use to manage our packages: Git Submodules.

Submodules allow you to pull in source from a remote repository without having to merge the code into your own. It creates a dependency between the two and makes it easier to check out only what you need. He gives the example of his oauth2 package being needed in multiple other applications, so instead of including and checking in multiple versions, he made a separate repo and defined the source as a submodule. He also includes a bit about fixing issues in your submodules with a few handy commands to get on the right branch, add a remote and push the commit.

0 comments voice your opinion now!
codeigniter git submodules modular versioncontrol


blog comments powered by Disqus

Similar Posts

DevShed: Validating Web Forms with the Code Igniter PHP Framework

Phil Sturgeon's Blog: Video: Set up a REST API with CodeIgniter

Code2Learn.com: Generating PDF files from Database using CodeIgniter

NetTuts.com: Easy Package Management for CodeIgniter with Sparks

Elliot Haughin's Blog: CodeIgniter 1.7.x, 'Core' 2.0, CodeIgniter Reactor, Bitbucket, Zips...


Community Events

Don't see your event here?
Let us know!


example part2 introduction laravel interview yii2 application project opinion php7 framework podcast language series community composer api symfony list conference

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework