Skip to content

Instantly share code, notes, and snippets.

@jcliberatol
Last active September 22, 2015 22:30
Show Gist options
  • Save jcliberatol/6120e9c25cfb7b96efb8 to your computer and use it in GitHub Desktop.
Save jcliberatol/6120e9c25cfb7b96efb8 to your computer and use it in GitHub Desktop.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment