How do I check whether the remote repository has changed and I need to pull?
Now I use this simple script:
git pull --dry-run | grep -q -v \'Already
You can also find a Phing script who does that now.
I needed a solution to update my production environments automatically and we're very happy thanks to this script that I'm sharing.
The script is written in XML and needs Phing.