Skip to content

Instantly share code, notes, and snippets.

@maxivak
Created January 25, 2014 02:31
Show Gist options
  • Save maxivak/8610898 to your computer and use it in GitHub Desktop.
Save maxivak/8610898 to your computer and use it in GitHub Desktop.
git examples
#!/bin/sh
echo
echo "**** get changes for TEST App"
echo
cd /var/www/html/testapp || exit
unset GIT_DIR
git pull origin master
echo
echo "*** Update PROD "
echo
cd /var/www/html/app || exit
unset GIT_DIR
git pull origin production
exec git-update-server-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment