Git reference - submodules
GIT Submodules: To initially set up the submodules: > pwd <main repository> > git submodule init > git submodule update Note: "git submodule update" tell that "hello submodules!! I have commit x as index for you. Please checkout to commit x" > cd <submodule dir> > git checkout master (or) what branch you want > git pull > cd <main repository> > git status > git add <sumodule dir> > git commit -m "update HEADLINK" short and sweet for init and update: mainrepositry > git submodule update --init --recursive To fetch the latest commit from submodules: > cd <submodule dir> > git checkout <branch> > git pull > cd <main repository> > git commit -m "pulling down latest changes from submodules" short and sweet: mainrepository > git submodule foreach git pull origin master if the submodules contain other submodules use: mainrepos...