diff --git a/new-deployable-site.sh b/new-deployable-site.sh index b16fac6..7359501 100755 --- a/new-deployable-site.sh +++ b/new-deployable-site.sh @@ -31,6 +31,9 @@ sudo bash -c "cat << EOF > ${my_repo}/hooks/post-receive #!/usr/bin/env bash mkdir -p '${my_deploy}' # always deploys from the default (master) branch +#git remote add upstream git@example.com:${my_repo} +#git push -u upstream master +#git push --all --force git --work-tree='${my_deploy}' --git-dir='${my_repo}' checkout -f echo Deployed branch "'$(git rev-parse --abbrev-ref HEAD)'" to '${my_deploy}' EOF