Browse Source

add upstream push as comment

master
AJ ONeal 5 years ago
parent
commit
2fc2133f99
  1. 3
      new-deployable-site.sh

3
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

Loading…
Cancel
Save