Front-end-Developer-Intervi.../deploy.sh

8 lines
148 B
Bash

#!/bin/sh
if [ -z "$1" ]
then
echo "Which folder do you want to deploy to GitHub Pages?"
exit 1
fi
git subtree push --prefix $1 origin gh-pages