Skip to content

Instantly share code, notes, and snippets.

@ocubom
Created January 28, 2013 11:12
Show Gist options
  • Save ocubom/4654684 to your computer and use it in GitHub Desktop.
Save ocubom/4654684 to your computer and use it in GitHub Desktop.
Fast init a symfony project based on symfony-standard-releases repository
#!/usr/bin/env sh
# Parameters: path to project and symfony branch to use
PROJECT="$1"
VERSION="$2"
# Create project path
mkdir "$PROJECT"
cd "$PROJECT"
# Init git repository
git init
# Add symfony-standard repository as remote and download its contents
git remote add symfony http://github.com/ocubom/symfony-standard-releases.git
git remote update
# Create master branch on latest published version of the desired branch
git checkout -b master symfony/"$VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment