//1: clone the repository from Fuel's github. git clone git://github.com/fuel/fuel.git //2: move into the main fuel directory cd fuel //3: initilize the submodules (populate .git/config with submodule data) git submodule init //4: download the submodules... git submodule update //5: move into the core directory (which is a submodule). cd fuel/core //6: change branch from (*no branch) to 1.1/develop git checkout 1.1/develop //7: open random file in text editor + make some small change (i.e. typo) + save file. sudo gedit classes/autoloader.php //8: add this file to the staging area. git add classes/autoloader.php //9: commit this file under 1.1develop branch. git commit -m "im committing a submodule" //10: push the new commit to MY (not fuel's) github repo (yes i've renamed the repo). git push git@github.com:jordanarseno/fuel-core.git //11: changes are reflected on github, looks good. //12: back way out to fuel again. time to push the submodule commit seperately ( [url=http://book.git-scm.com/5_submodules.html]http://book.git-scm.com/5_submodules.html[/url] ) cd ../../ //13: add the fuel/core submodule to the staging area. git add fuel/core //14: commit the submodule change. git commit -m "submodule pushed. pushing super now." //15: push the commit to MY (not fuel's) github repo. git push git@github.com:jordanarseno/fuel.git
* (no branch) 1.1/develop
It looks like you're new here. If you want to get involved, click one of these buttons!