Skip to content

Instantly share code, notes, and snippets.

@riaf
Last active December 15, 2015 12:39
Show Gist options
  • Save riaf/5262116 to your computer and use it in GitHub Desktop.
Save riaf/5262116 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
echo -n "Project name: "
read PROJNAME
if [ ! "$PROJNAME" ]; then
echo "Abort."
exit 1
fi
git clone git://github.com/riaf/express-template.git $PROJNAME
rm -rf $PROJNAME/.git
cd $PROJNAME
git init
git add .
git commit -m "Initial commit." -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment