Skip to content

Instantly share code, notes, and snippets.

@havvg
Created August 7, 2012 10:30
Show Gist options
  • Save havvg/3284378 to your computer and use it in GitHub Desktop.
Save havvg/3284378 to your computer and use it in GitHub Desktop.
Push to cloudControl with submodules
[alias]
   cctrl = push --recurse-submodules=check cloudcontrol
@havvg
Copy link
Author

havvg commented Aug 7, 2012

The cloudcontrol remote points to the applications repository on cloudcontrol!

 ormigo-reportings git:develop ✗  git rv                                                                                                                        ~/Ormigo/repository/ormigo-reportings
cloudcontrol    ssh://[email protected]/repository.git (fetch)
cloudcontrol    ssh://[email protected]/repository.git (push)
origin  [email protected]:reportings.git (fetch)
origin  [email protected]:reportings.git (push)
 ormigo-reportings git:develop ✗  git cctrl master:reportings                                                                                                   ~/Ormigo/repository/ormigo-reportings
Counting objects: 84, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (32/32), done.
Writing objects: 100% (39/39), 3.67 KiB, done.
Total 39 (delta 17), reused 0 (delta 0)

>> Receiving push
>> Git submodules detected, installing
...

@cordoval
Copy link

cordoval commented Aug 8, 2012

interesting command how does it work?

@havvg
Copy link
Author

havvg commented Aug 10, 2012

It's a shortcut alias to the push command. It pushes to the cloudcontrol remote.
The check ensures, that you don't push wrong submodules, e.g. only those reachable from your local environment or with your ssh key.

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