git commit -m "Initial import"
if which git-hooks &> /dev/null; then
+ echo ""
+ echo "Installing hooks..."
git hooks --install
fi
+ git branch develop
+
if [ -e "/usr/lib/git-core/git-flow" ]; then
- git branch develop
+ echo ""
+ echo "Setting up git-flow..."
git flow init -d
fi
)
# Vagrant integration
(
+ echo ""
+ echo "Setting up vagrant integration..."
cd $CODE/$PROJECT
- git branch dev
- git checkout dev
+ git checkout develop
echo '.vagrant' >> .gitignore
git commit -a -m "Dev branch with vagrant support"
)
# Teardown
-echo "Please review and commit your new project :)"
+echo "Welcome to your new project :)"