Last active
May 31, 2018 03:18
-
-
Save apit/a22889897ea2c13b9384fac81340aceb to your computer and use it in GitHub Desktop.
pull the latest code on dev web server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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