Created
January 28, 2013 11:12
-
-
Save ocubom/4654684 to your computer and use it in GitHub Desktop.
Fast init a symfony project based on symfony-standard-releases repository
This file contains hidden or 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
#!/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