Skip to content

Instantly share code, notes, and snippets.

@apit
Last active May 31, 2018 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apit/a22889897ea2c13b9384fac81340aceb to your computer and use it in GitHub Desktop.
Save apit/a22889897ea2c13b9384fac81340aceb to your computer and use it in GitHub Desktop.
pull the latest code on dev web server
#!/bin/bash
# On Windows, git-bash must be installed
# must be the same server with repo
$DOCROOT="/e/APPS_KELEMBAGAAN/umum/sma/.git"
while read oldrev newrev ref
do
echo "git pull-ing on /e/APPS_KELEMBAGAAN/umum/sma"
git --git-dir="$DOCROOT" pull
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment