Skip to content

Instantly share code, notes, and snippets.

@tant42
Created August 2, 2013 16:50
Show Gist options
  • Save tant42/6141440 to your computer and use it in GitHub Desktop.
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.
#!/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