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.

Revisions

  1. jcliberatol revised this gist Sep 22, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Pushing_from_submodule.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    ## Standing from submodule
    ## 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'
  2. jcliberatol revised this gist Sep 22, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Pushing_from_submodule.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    ## Standing from submodule
    ´´´
    ```
    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
  3. jcliberatol revised this gist Sep 22, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Pushing_from_submodule.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,11 @@
    //In submodule
    ## Standing from submodule
    ´´´
    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
    ´´´
    ## :D
  4. jcliberatol created this gist Sep 22, 2015.
    9 changes: 9 additions & 0 deletions Pushing_from_submodule.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    //In submodule
    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