Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 578 Bytes
#!/usr/bin/env bash
# You can use this file via the command line, like this:
#
# ./site /path/to/new/site
#
# You may need to mark this script as executable before using it:
#
# chmod +x site
#
# Finally, you can move this file to /usr/bin to use the `site`
# command from any directory
# Create the directory
mkdir $1 &> /dev/null
FULL_PATH=`cd $1; pwd`
# If you are moving the script from this directory
# be sure to uncomment the next line, and change the path
# cd ~/Development/html5-site-template
# Run the actual export
git archive master | tar -x -C $FULL_PATH
Jump to Line
Something went wrong with that request. Please try again.