From 2fc2133f9990df4e8581ff5f4b84afc4dd0c36f7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 1 Jun 2019 06:08:19 +0000 Subject: [PATCH] add upstream push as comment --- new-deployable-site.sh | 3 +++ 1 file changed, 3 insertions(+) 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