Tag Archive for git

Adding CakePHP as GIT submodule

Why we should apply this in our development environment ? Because it is easier to update CakePHP library used in your application.

Follow this trail below ,  junior programmer should be able to understand it :

cd /var/www/my_cakephp_application

# First, remove the current cake folder

 
rm -rf cake/
 
mkdir core/

# Now add cakephp as your application submodule

git submodule add  git@github.com:arifsanchez/cakephp.git core/
git submodule init
git submodule update

# Okay, now you should see files in core/ directory.
# Set your application to read cakephp library from new directory.
# Open app/webroot/index.php (try line 53)

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'core');
}

So every morning, before you start your code writing again, please run

git submodule init
 
git submodule update

Remove .svn recursive

Im having hard time to do my application code cleanup. after a few google search result hop.

So, this is how to remove .svn folder recursively (works in linux terminal) :

find . -name ".svn" -exec rm -rf {} \;