Created
January 22, 2013 19:43
-
-
Save ryanj/4597754 to your computer and use it in GitHub Desktop.
Add this to your .bashrc to run "rhclone $app_name $cart_type $git_uri" to quickly initialize a gear with an openshift-compatible cart (via a git repo uri)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add the following lines to your `~/.bashrc` to run "rhclone $app_name $cart_type $git_uri" | |
# in order to quickly initialize an openshift gear | |
# with an openshift-compatible cart (via a git repo uri). | |
# | |
# 'git' and 'rhc' command-line tools are required: | |
function rhclone() | |
{ | |
rhc app create $1 $2 && cd $1 && git remote add upstream -m master $3 && git pull -s recursive -X theirs upstream master && git push | |
} | |
export rhclone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment