Pushing from a submodule directly to the other repo master branch You can change the names as you like ... git add . git commit -m 'changed submodule' git checkout -b temp git branch -f master temp git checkout master git branch -d temp git push origin master :D