I\'ve two or more projects (let\'s call them ProjectFoo and ProjectBar) having some common code that I put in a submodule
On the submodule: git push origin HEAD:master
submodule
git push origin HEAD:master