Created
August 2, 2013 16:50
-
-
Save tant42/6141440 to your computer and use it in GitHub Desktop.
Quick script to find out what the difference between your local repository and what's currently deployed.
This file contains hidden or 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 | |
SERVER_HEAD=`ssh $1 "cd /var/www/apps/$2/current && git rev-parse HEAD"` | |
echo $SERVER_HEAD | |
git log --graph --oneline $SERVER_HEAD..HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment