Skip to content

Instantly share code, notes, and snippets.

@ryanj
Created January 22, 2013 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanj/4597754 to your computer and use it in GitHub Desktop.
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)
#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