Skip to content

Instantly share code, notes, and snippets.

@senki
Last active May 10, 2017 04:34
Show Gist options
  • Save senki/febee38475c91210348d888ac87b0300 to your computer and use it in GitHub Desktop.
Save senki/febee38475c91210348d888ac87b0300 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "No argument, exiting"
fi
laravel new "$@"
cd "$1" || exit
VERSION=$(php artisan --version)
git init
git add --all
git commit -m "Install $VERSION"
git remote add -t master --no-tags upstream https://github.com/laravel/laravel.git
git fetch upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment